changeset 40:32559c69f6e5

Cosmetics.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 24 May 2010 02:55:17 +0300
parents f17a3dc38f2a
children 5828a0cb4d10
files pwplib/sdl.c
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- 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);