Mercurial > sdl-ios-xcode
changeset 988:24b5c3ad4852
Remove ambiguous/useless code
author | Patrice Mandin <patmandin@gmail.com> |
---|---|
date | Mon, 22 Nov 2004 20:37:41 +0000 |
parents | d9f3b5bb7870 |
children | 475166d13b44 |
files | src/video/gem/SDL_gemvideo.c |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/video/gem/SDL_gemvideo.c Mon Nov 22 20:36:59 2004 +0000 +++ b/src/video/gem/SDL_gemvideo.c Mon Nov 22 20:37:41 2004 +0000 @@ -760,7 +760,6 @@ #ifdef HAVE_OPENGL if (flags & SDL_OPENGL) { - int conversion_needed = 0; GLenum format = OSMESA_COLOR_INDEX; /* 8 bits */ /* Init OpenGL context using OSMesa */ @@ -1513,7 +1512,9 @@ for (y=0; y<surface->h; y++) { pixel = line; for (x=0; x<surface->w; x++) { - *pixel++ = SDL_Swap16(*pixel); + unsigned short color = *pixel; + + *pixel++ = SDL_Swap16(color); } line += pitch;