Wrongly test if width multiple of 16
authorPatrice Mandin <patmandin@gmail.com>
Tue, 03 Aug 2004 08:50:52 +0000
changeset 91817822f1f9674
parent 917 24852aeb0657
child 919 4b1dd7691f05
Wrongly test if width multiple of 16
src/video/gem/SDL_gemvideo.c
     1.1 --- a/src/video/gem/SDL_gemvideo.c	Mon Aug 02 18:39:50 2004 +0000
     1.2 +++ b/src/video/gem/SDL_gemvideo.c	Tue Aug 03 08:50:52 2004 +0000
     1.3 @@ -563,7 +563,7 @@
     1.4  	}
     1.5  
     1.6  	/* width must be multiple of 16, for vro_cpyfm() and c2p_convert() */
     1.7 -	if ((width & -16) != 0) {
     1.8 +	if ((width & 15) != 0) {
     1.9  		width = (width | 15) +1;
    1.10  	}
    1.11  
    1.12 @@ -749,7 +749,7 @@
    1.13  	surface = this->screen;
    1.14  	/* Need to be a multiple of 16 pixels */
    1.15  	surf_width=surface->w;
    1.16 -	if ((surf_width & -16) != 0) {
    1.17 +	if ((surf_width & 15) != 0) {
    1.18  		surf_width = (surf_width | 15) + 1;
    1.19  	}
    1.20  
    1.21 @@ -869,7 +869,7 @@
    1.22  
    1.23  	/* Need to be a multiple of 16 pixels */
    1.24  	surf_width=surface->w;
    1.25 -	if ((surf_width & -16) != 0) {
    1.26 +	if ((surf_width & 15) != 0) {
    1.27  		surf_width = (surf_width | 15) + 1;
    1.28  	}
    1.29  
    1.30 @@ -1200,7 +1200,7 @@
    1.31  
    1.32  		/* Need to be a multiple of 16 pixels */
    1.33  		width=surface->w;
    1.34 -		if ((width & -16) != 0) {
    1.35 +		if ((width & 15) != 0) {
    1.36  			width = (width | 15) + 1;
    1.37  		}
    1.38  		mfdb_src.fd_w=width;