From 240ecdfe5f196572d089ed0c9c3accbe74f45dbe Mon Sep 17 00:00:00 2001 From: Ben Russell Date: Thu, 23 Mar 2023 17:10:45 +1300 Subject: [PATCH] vid_ega: Mask ma correctly in the text renderer It was already masked correctly in the 4bpp graphics renderers, but now we get to mask it correctly in the text renderer --- src/video/vid_ega_render.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/vid_ega_render.c b/src/video/vid_ega_render.c index 591acc3e1..5b5a10631 100644 --- a/src/video/vid_ega_render.c +++ b/src/video/vid_ega_render.c @@ -165,7 +165,7 @@ ega_render_text(ega_t *ega) ega->ma += 4; p += charwidth; } - ega->ma &= ega->vrammask; + ega->ma &= 0x3ffff; } }