diff src/video/xbios/SDL_xbios.c @ 319:189a6a3416c7

*** empty log message ***
author Sam Lantinga <slouken@libsdl.org>
date Tue, 26 Mar 2002 17:37:31 +0000
parents bff64eba7721
children 9ff7e90aaa94
line wrap: on
line diff
--- a/src/video/xbios/SDL_xbios.c	Sun Mar 24 21:44:06 2002 +0000
+++ b/src/video/xbios/SDL_xbios.c	Tue Mar 26 17:37:31 2002 +0000
@@ -639,7 +639,10 @@
 			int x1,x2;
 
 			x1 = rects[i].x & ~15;
-			x2 = ((rects[i].x+rects[i].w) | 15) +1;
+			x2 = rects[i].x+rects[i].w;
+			if (x2 & 15) {
+				x2 = (x2 | 15) +1;
+			}
 
 			source = surface->pixels;
 			source += surface->pitch * rects[i].y;