Wrongly test if width multiple of 16
authorPatrice Mandin <patmandin@gmail.com>
Tue, 03 Aug 2004 08:50:52 +0000
changeset 918 17822f1f9674
parent 917 24852aeb0657
child 919 4b1dd7691f05
Wrongly test if width multiple of 16
src/video/gem/SDL_gemvideo.c
--- a/src/video/gem/SDL_gemvideo.c	Mon Aug 02 18:39:50 2004 +0000
+++ b/src/video/gem/SDL_gemvideo.c	Tue Aug 03 08:50:52 2004 +0000
@@ -563,7 +563,7 @@
 	}
 
 	/* width must be multiple of 16, for vro_cpyfm() and c2p_convert() */
-	if ((width & -16) != 0) {
+	if ((width & 15) != 0) {
 		width = (width | 15) +1;
 	}
 
@@ -749,7 +749,7 @@
 	surface = this->screen;
 	/* Need to be a multiple of 16 pixels */
 	surf_width=surface->w;
-	if ((surf_width & -16) != 0) {
+	if ((surf_width & 15) != 0) {
 		surf_width = (surf_width | 15) + 1;
 	}
 
@@ -869,7 +869,7 @@
 
 	/* Need to be a multiple of 16 pixels */
 	surf_width=surface->w;
-	if ((surf_width & -16) != 0) {
+	if ((surf_width & 15) != 0) {
 		surf_width = (surf_width | 15) + 1;
 	}
 
@@ -1200,7 +1200,7 @@
 
 		/* Need to be a multiple of 16 pixels */
 		width=surface->w;
-		if ((width & -16) != 0) {
+		if ((width & 15) != 0) {
 			width = (width | 15) + 1;
 		}
 		mfdb_src.fd_w=width;