From 232d2f7e18b708fc26a9753b20446f7b2818dbd0 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Tue, 16 Nov 2010 08:38:27 +0900 Subject: [PATCH] Fix an undefined operation thanks to spirit of the domain quaddicted.com. --- libs/video/renderer/sw32/draw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/video/renderer/sw32/draw.c b/libs/video/renderer/sw32/draw.c index 36acdf94f..ce84861cb 100644 --- a/libs/video/renderer/sw32/draw.c +++ b/libs/video/renderer/sw32/draw.c @@ -1090,7 +1090,7 @@ Draw_FadeScreen (void) ((byte *) vid.buffer + vid.rowbytes * y); pbuf = (unsigned short *) vid.buffer + (vid.rowbytes >> 1) * y; for (x = 0; x < vid.conwidth; x++) - pbuf[x] = (pbuf[x] >>= 1) & 0x7BEF; + pbuf[x] = (pbuf[x] >> 1) & 0x7BEF; } } break; @@ -1100,7 +1100,7 @@ Draw_FadeScreen (void) unsigned int *pbuf = (unsigned int *) ((byte *) vid.buffer + vid.rowbytes * y); for (x = 0; x < vid.conwidth; x++) - pbuf[x] = (pbuf[x] >>= 1) & 0x7F7F7F7F; + pbuf[x] = (pbuf[x] >> 1) & 0x7F7F7F7F; } } break;