# HG changeset patch # User Patrice Mandin # Date 1091523052 0 # Node ID 17822f1f967488a731934c80b9601b93a7b757d6 # Parent 24852aeb06574ac4b8f48a5f828cc33edf23105b Wrongly test if width multiple of 16 diff -r 24852aeb0657 -r 17822f1f9674 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;