diff options
author | Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> | 2023-10-26 09:56:48 +0100 |
---|---|---|
committer | Laurent Vivier <laurent@vivier.eu> | 2023-11-05 15:48:36 +0100 |
commit | 2fca4e7a710bc5783b1043ce354b0597b519f157 (patch) | |
tree | 0daad5c516c9dafe41258bfc6068dcf8569dfb6f /hw/display | |
parent | a24fe909f30c7b6ad49848af1b15c1dc714081b5 (diff) | |
download | qemu-2fca4e7a710bc5783b1043ce354b0597b519f157.zip qemu-2fca4e7a710bc5783b1043ce354b0597b519f157.tar.gz qemu-2fca4e7a710bc5783b1043ce354b0597b519f157.tar.bz2 |
macfb: rename DAFB_RESET to DAFB_LUT_INDEX
When A/UX uses the MacOS Device Manager Status (GetEntries) call to read the
contents of the CLUT, it is easy to see that the requested index is written to
the DAFB_RESET register. Update the palette_current index with the requested
value, and rename it to DAFB_LUT_INDEX to reflect its true purpose.
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-ID: <20231026085650.917663-3-mark.cave-ayland@ilande.co.uk>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'hw/display')
-rw-r--r-- | hw/display/macfb.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/display/macfb.c b/hw/display/macfb.c index 28db2e9..eb4ce6b 100644 --- a/hw/display/macfb.c +++ b/hw/display/macfb.c @@ -36,7 +36,7 @@ #define DAFB_INTR_MASK 0x104 #define DAFB_INTR_STAT 0x108 #define DAFB_INTR_CLEAR 0x10c -#define DAFB_RESET 0x200 +#define DAFB_LUT_INDEX 0x200 #define DAFB_LUT 0x213 #define DAFB_INTR_VBL 0x4 @@ -583,8 +583,8 @@ static void macfb_ctrl_write(void *opaque, s->regs[DAFB_INTR_STAT >> 2] &= ~DAFB_INTR_VBL; macfb_update_irq(s); break; - case DAFB_RESET: - s->palette_current = 0; + case DAFB_LUT_INDEX: + s->palette_current = (val & 0xff) * 3; break; case DAFB_LUT: s->color_palette[s->palette_current] = val; |