X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Flibgame%2Fsdl.c;h=1bc222a958c49c227bfc9fa9a6a23bf853cd8a33;hb=d8e3568accbc475855027f7199e55543dc4d1ddf;hp=74123228f2b2185f43100f4c3b2d5c19b70f356a;hpb=80b3b0a5109b5678a9a921fcd1b4f7046e5e76d0;p=rocksndiamonds.git diff --git a/src/libgame/sdl.c b/src/libgame/sdl.c index 74123228..1bc222a9 100644 --- a/src/libgame/sdl.c +++ b/src/libgame/sdl.c @@ -71,7 +71,7 @@ inline void SDLInitVideoBuffer(DrawBuffer **backbuffer, DrawWindow **window, fullscreen_yoffset = 0; #ifdef FULLSCREEN_BUG - for (i=0; screen_xy[i][0] != -1; i++) + for (i = 0; screen_xy[i][0] != -1; i++) { if (video.width <= screen_xy[i][0] && video.height <= screen_xy[i][1]) { @@ -340,11 +340,11 @@ inline void SDLDrawLines(SDL_Surface *surface, struct XY *points, int i, x, y; int line_width = 4; - for (i=0; iformat->palette->ncolors; i++) + for (i = 0; i < zoom_src->format->palette->ncolors; i++) zoom_dst->format->palette->colors[i] = zoom_src->format->palette->colors[i]; zoom_dst->format->palette->ncolors = zoom_src->format->palette->ncolors; @@ -1454,7 +1453,7 @@ void SDLInitJoysticks() } } - for (i=0; i