comparison src/video/SDL_video.c @ 2786:6bacfecbf27e

indent
author Sam Lantinga <slouken@libsdl.org>
date Tue, 25 Nov 2008 02:21:53 +0000
parents fa1095d42a5b
children 93764fe8601a
comparison
equal deleted inserted replaced
2785:fa1095d42a5b 2786:6bacfecbf27e
45 #undef CreateWindow 45 #undef CreateWindow
46 #endif 46 #endif
47 #endif /* SDL_VIDEO_OPENGL */ 47 #endif /* SDL_VIDEO_OPENGL */
48 48
49 /* From SDL_surface.c */ 49 /* From SDL_surface.c */
50 extern void SDL_ConvertColorkeyToAlpha(SDL_Surface *surface); 50 extern void SDL_ConvertColorkeyToAlpha(SDL_Surface * surface);
51 51
52 /* Available video drivers */ 52 /* Available video drivers */
53 static VideoBootStrap *bootstrap[] = { 53 static VideoBootStrap *bootstrap[] = {
54 #if SDL_VIDEO_DRIVER_COCOA 54 #if SDL_VIDEO_DRIVER_COCOA
55 &COCOA_bootstrap, 55 &COCOA_bootstrap,
1586 SDL_BITSPERPIXEL(format)); 1586 SDL_BITSPERPIXEL(format));
1587 } 1587 }
1588 } 1588 }
1589 dst = SDL_ConvertSurface(surface, dst_fmt, 0); 1589 dst = SDL_ConvertSurface(surface, dst_fmt, 0);
1590 if (dst) { 1590 if (dst) {
1591 SDL_ConvertColorkeyToAlpha(dst); 1591 SDL_ConvertColorkeyToAlpha(dst);
1592 SDL_UpdateTexture(textureID, NULL, dst->pixels, dst->pitch); 1592 SDL_UpdateTexture(textureID, NULL, dst->pixels, dst->pitch);
1593 SDL_FreeSurface(dst); 1593 SDL_FreeSurface(dst);
1594 } 1594 }
1595 if (dst_fmt->palette) { 1595 if (dst_fmt->palette) {
1596 SDL_FreePalette(dst_fmt->palette); 1596 SDL_FreePalette(dst_fmt->palette);