Commit 6eba7953 authored by Patrice Mandin's avatar Patrice Mandin

Remove ambiguous/useless code

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40989
parent 984a5d06
...@@ -760,7 +760,6 @@ SDL_Surface *GEM_SetVideoMode(_THIS, SDL_Surface *current, ...@@ -760,7 +760,6 @@ SDL_Surface *GEM_SetVideoMode(_THIS, SDL_Surface *current,
#ifdef HAVE_OPENGL #ifdef HAVE_OPENGL
if (flags & SDL_OPENGL) { if (flags & SDL_OPENGL) {
int conversion_needed = 0;
GLenum format = OSMESA_COLOR_INDEX; /* 8 bits */ GLenum format = OSMESA_COLOR_INDEX; /* 8 bits */
/* Init OpenGL context using OSMesa */ /* Init OpenGL context using OSMesa */
...@@ -1513,7 +1512,9 @@ static void GEM_GL_Convert565le(SDL_Surface *surface) ...@@ -1513,7 +1512,9 @@ static void GEM_GL_Convert565le(SDL_Surface *surface)
for (y=0; y<surface->h; y++) { for (y=0; y<surface->h; y++) {
pixel = line; pixel = line;
for (x=0; x<surface->w; x++) { for (x=0; x<surface->w; x++) {
*pixel++ = SDL_Swap16(*pixel); unsigned short color = *pixel;
*pixel++ = SDL_Swap16(color);
} }
line += pitch; line += pitch;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment