From 82c2522f423c63531bf101f1e6d63bd92ce08fdd Mon Sep 17 00:00:00 2001 From: OBattler Date: Tue, 30 Nov 2021 13:04:30 +0100 Subject: [PATCH] Fixed graphics mode on Hercules Plus, fixes #1832. --- src/video/vid_herculesplus.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/video/vid_herculesplus.c b/src/video/vid_herculesplus.c index 607780a68..a03a147eb 100644 --- a/src/video/vid_herculesplus.c +++ b/src/video/vid_herculesplus.c @@ -475,9 +475,9 @@ graphics_line(herculesplus_t *dev) dev->ma++; for (c = 0; c < 16; c++) { - val >>= 1; + buffer32->line[dev->displine][(x << 4) + c] = (val & 0x8000) ? 7 : 0; - buffer32->line[dev->displine][(x << 4) + c] = (val & 1) ? 7 : 0; + val <<= 1; } for (c = 0; c < 16; c += 8)