qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] q800: drop 8-bit graphic_depth check for Apple 21 inch displ


From: Laurent Vivier
Subject: Re: [PATCH] q800: drop 8-bit graphic_depth check for Apple 21 inch display
Date: Wed, 20 Oct 2021 16:22:53 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.2.0

Le 20/10/2021 à 16:18, Mark Cave-Ayland a écrit :
The graphic_depth check is no longer required since commit df8abbbadf ("macfb:
add common monitor modes supported by the MacOS toolbox ROM") which introduced
code in macfb_common_realize() to only allow the resolutions/depths provided in
macfb_mode_table to be specified for each display type.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Fixes: df8abbbadf ("macfb: add common monitor modes supported by the MacOS toolbox 
ROM")
---
  hw/m68k/q800.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/m68k/q800.c b/hw/m68k/q800.c
index fd4855047e..da2736c82c 100644
--- a/hw/m68k/q800.c
+++ b/hw/m68k/q800.c
@@ -425,7 +425,7 @@ static void q800_init(MachineState *machine)
      qdev_prop_set_uint32(dev, "width", graphic_width);
      qdev_prop_set_uint32(dev, "height", graphic_height);
      qdev_prop_set_uint8(dev, "depth", graphic_depth);
-    if (graphic_width == 1152 && graphic_height == 870 && graphic_depth == 8) {
+    if (graphic_width == 1152 && graphic_height == 870) {
          qdev_prop_set_uint8(dev, "display", MACFB_DISPLAY_APPLE_21_COLOR);
      } else {
          qdev_prop_set_uint8(dev, "display", MACFB_DISPLAY_VGA);


Reviewed-by: Laurent Vivier <laurent@vivier.eu>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]