changeset 918:17822f1f9674

Wrongly test if width multiple of 16
author Patrice Mandin <patmandin@gmail.com>
date Tue, 03 Aug 2004 08:50:52 +0000
parents 24852aeb0657
children 4b1dd7691f05
files src/video/gem/SDL_gemvideo.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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;