From 8f84aae0727b1ee7688dd5d93441b89499be2df6 Mon Sep 17 00:00:00 2001 From: OBattler Date: Sun, 18 Oct 2020 00:21:20 +0200 Subject: [PATCH] And yet a third one. --- src/video/vid_tgui9440.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/vid_tgui9440.c b/src/video/vid_tgui9440.c index c9f3cd10a..68619f134 100644 --- a/src/video/vid_tgui9440.c +++ b/src/video/vid_tgui9440.c @@ -693,7 +693,7 @@ void tgui_hwcursor_draw(svga_t *svga, int displine) bit = (7 - xx); dat[0] = (svga->vram[byte] >> bit) & 0x01; /* AND */ dat[1] = (svga->vram[(pitch >> 1) + byte] >> bit) & 0x01; /* XOR */ - val = (dat[0] << 1) || dat[1]; + val = (dat[0] << 1) | dat[1]; color = ((uint32_t *)buffer32->line[displine])[svga->x_add + offset + xx]; if (!!(svga->crtc[0x50] & 0x40)) { /* X11 style? */