From f50556d1bf3dd65907b0df10666c33c103fdff1f Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Sat, 18 Sep 2021 01:00:25 +0200 Subject: [PATCH] CHAMBER: Fix dialog box rendering --- engines/chamber/cga.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engines/chamber/cga.cpp b/engines/chamber/cga.cpp index d84a1ced0a7..65032805ed4 100644 --- a/engines/chamber/cga.cpp +++ b/engines/chamber/cga.cpp @@ -380,7 +380,7 @@ NB! Line must not wrap around the edge void CGA_DrawHLine(unsigned int x, unsigned int y, unsigned int l, unsigned char color, unsigned char *target) { unsigned int ofs; /*pixels are starting from top bits of byte*/ - unsigned int mask = ~(3 << ((CGA_PIXELS_PER_BYTE - 1) * CGA_BITS_PER_PIXEL)); + uint16 mask = ~(3 << ((CGA_PIXELS_PER_BYTE - 1) * CGA_BITS_PER_PIXEL)); unsigned char pixel = color << ((CGA_PIXELS_PER_BYTE - 1) * CGA_BITS_PER_PIXEL); mask >>= (x % CGA_PIXELS_PER_BYTE) * CGA_BITS_PER_PIXEL;