[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 9/9] q800: drop 8-bit graphic_depth check for Apple 21 inch displa
From: |
Laurent Vivier |
Subject: |
[PULL 9/9] q800: drop 8-bit graphic_depth check for Apple 21 inch display |
Date: |
Fri, 22 Oct 2021 09:17:05 +0200 |
From: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
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")
Message-Id: <20211020141810.7875-1-mark.cave-ayland@ilande.co.uk>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
---
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 a081051a8dd5..e4c7c9b88ad0 100644
--- a/hw/m68k/q800.c
+++ b/hw/m68k/q800.c
@@ -584,7 +584,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);
--
2.31.1
- [PULL 0/9] Q800 patches, Laurent Vivier, 2021/10/22
- [PULL 3/9] q800: use GLUE IRQ numbers instead of IRQ level for GLUE IRQs, Laurent Vivier, 2021/10/22
- [PULL 4/9] mac_via: add GPIO for A/UX mode, Laurent Vivier, 2021/10/22
- [PULL 2/9] q800: move VIA1 IRQ from level 1 to level 6, Laurent Vivier, 2021/10/22
- [PULL 1/9] mac_via: update comment for VIA1B_vMystery bit, Laurent Vivier, 2021/10/22
- [PULL 5/9] q800: wire up auxmode GPIO to GLUE, Laurent Vivier, 2021/10/22
- [PULL 7/9] q800: wire up remaining IRQs in classic mode, Laurent Vivier, 2021/10/22
- [PULL 6/9] q800: route SONIC on-board Ethernet IRQ via nubus IRQ 9 in classic mode, Laurent Vivier, 2021/10/22
- [PULL 9/9] q800: drop 8-bit graphic_depth check for Apple 21 inch display,
Laurent Vivier <=
- [PULL 8/9] q800: add NMI handler, Laurent Vivier, 2021/10/22
- Re: [PULL 0/9] Q800 patches, Richard Henderson, 2021/10/22