comparison src/video/SDL_bmp.c @ 1706:1577404809f0 SDL-1.3

Added a multi-window version of testsprite using the new API.
author Sam Lantinga <slouken@libsdl.org>
date Sat, 24 Jun 2006 16:51:01 +0000
parents 396a35389351
children
comparison
equal deleted inserted replaced
1705:fc731a7d83ed 1706:1577404809f0
230 SDL_RWread(src, &palette->colors[i].g, 1, 1); 230 SDL_RWread(src, &palette->colors[i].g, 1, 1);
231 SDL_RWread(src, &palette->colors[i].r, 1, 1); 231 SDL_RWread(src, &palette->colors[i].r, 1, 1);
232 SDL_RWread(src, &palette->colors[i].unused, 1, 1); 232 SDL_RWread(src, &palette->colors[i].unused, 1, 1);
233 } 233 }
234 } 234 }
235 palette->ncolors = biClrUsed;
236 } 235 }
237 236
238 /* Read the surface pixels. Note that the bmp image is upside down */ 237 /* Read the surface pixels. Note that the bmp image is upside down */
239 if (SDL_RWseek(src, fp_offset + bfOffBits, RW_SEEK_SET) < 0) { 238 if (SDL_RWseek(src, fp_offset + bfOffBits, RW_SEEK_SET) < 0) {
240 SDL_Error(SDL_EFSEEK); 239 SDL_Error(SDL_EFSEEK);