From ca58ed44563b1db1e38ec792188a02883f1d1e6c Mon Sep 17 00:00:00 2001 From: OBattler Date: Mon, 4 Nov 2019 22:14:47 +0100 Subject: [PATCH] Fixed a bug in the PGC/Image Manager 1024 text modes. --- src/video/vid_pgc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/video/vid_pgc.c b/src/video/vid_pgc.c index 637709c1a..6addc20b1 100644 --- a/src/video/vid_pgc.c +++ b/src/video/vid_pgc.c @@ -44,7 +44,7 @@ * * This is expected to be done shortly. * - * Version: @(#)vid_pgc.c 1.0.3 2019/09/28 + * Version: @(#)vid_pgc.c 1.0.4 2019/11/04 * * Authors: Fred N. van Kempen, * John Elliott, @@ -2311,7 +2311,7 @@ pgc_cga_text(pgc_t *dev, int w) uint32_t val; int cw = (w == 80) ? 8 : 16; - addr = &dev->cga_vram[(((ma << 1) + ((dev->displine / pitch)*w)) * 2) & 0x3ffe]; + addr = &dev->cga_vram[((ma + ((dev->displine / pitch) * w)) * 2) & 0x3ffe]; ma += (dev->displine / pitch) * w; for (x = 0; x < w; x++) {