Skip to content

Commit

Permalink
Remove ambiguous/useless code
Browse files Browse the repository at this point in the history
  • Loading branch information
pmandin committed Nov 22, 2004
1 parent e1acab1 commit 600fb9f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/video/gem/SDL_gemvideo.c
Expand Up @@ -760,7 +760,6 @@ SDL_Surface *GEM_SetVideoMode(_THIS, SDL_Surface *current,

#ifdef HAVE_OPENGL
if (flags & SDL_OPENGL) {
int conversion_needed = 0;
GLenum format = OSMESA_COLOR_INDEX; /* 8 bits */

/* Init OpenGL context using OSMesa */
Expand Down Expand Up @@ -1513,7 +1512,9 @@ static void GEM_GL_Convert565le(SDL_Surface *surface)
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;
Expand Down

0 comments on commit 600fb9f

Please sign in to comment.