# HG changeset patch # User Matti Hamalainen # Date 1274658917 -10800 # Node ID 32559c69f6e59c83b88599e4961568c3c37628bb # Parent f17a3dc38f2abd9191fe3e0895746215292e6313 Cosmetics. diff -r f17a3dc38f2a -r 32559c69f6e5 pwplib/sdl.c --- a/pwplib/sdl.c Mon May 24 02:41:36 2010 +0300 +++ b/pwplib/sdl.c Mon May 24 02:55:17 2010 +0300 @@ -20,8 +20,8 @@ struct { int width, height, vflags; SDL_Surface *screen; - SDL_Color cols[PWP_NCOLORS]; - Uint32 lookup[256]; + SDL_Color pal[PWP_NCOLORS]; + Uint32 lookup[PWP_NCOLORS]; } pwp_SDL; @@ -130,12 +130,12 @@ { int r, g, b; rast2rgb(i, 255, &r, &g, &b); - pwp_SDL.cols[i].r = r; - pwp_SDL.cols[i].g = g; - pwp_SDL.cols[i].b = b; + pwp_SDL.pal[i].r = r; + pwp_SDL.pal[i].g = g; + pwp_SDL.pal[i].b = b; pwp_SDL.lookup[i] = i | (i << 8) | (i << 16) | (i << 24); } - SDL_SetColors(pwp_SDL.screen, pwp_SDL.cols, 0, PWP_NCOLORS); + SDL_SetColors(pwp_SDL.screen, pwp_SDL.pal, 0, PWP_NCOLORS); pwpwrite("* SDL video (%d x %d, pitch=%d)\n", pwp_SDL.screen->w, pwp_SDL.screen->h, pwp_SDL.screen->pitch);