Some cleanup
This commit is contained in:
parent
690fb2ec4e
commit
22866bd7db
1 changed files with 20 additions and 18 deletions
|
|
@ -877,7 +877,6 @@ static void SDL_WarpMouse(Uint16 x, Uint16 y)
|
|||
static SDL_Surface *SDL_DisplayFormat(SDL_Surface *surface)
|
||||
{
|
||||
SDL_Surface *tmp;
|
||||
// tmp = SDL_ConvertSurfaceFormat(surface, window_format, 0);
|
||||
tmp = SDL_ConvertSurfaceFormat(surface, SDL_PIXELFORMAT_RGB888, 0);
|
||||
return(tmp);
|
||||
}
|
||||
|
|
@ -12461,7 +12460,9 @@ static void cleanup(void)
|
|||
#endif
|
||||
|
||||
|
||||
|
||||
SDL_DestroyTexture(texture);
|
||||
SDL_DestroyRenderer(renderer);
|
||||
SDL_DestroyWindow(window_screen);
|
||||
|
||||
/* Close up! */
|
||||
|
||||
|
|
@ -23437,7 +23438,8 @@ VIDEO_BPP, SDL_SWSURFACE);*/
|
|||
|
||||
cleanup();
|
||||
exit(1);
|
||||
}}
|
||||
}
|
||||
}
|
||||
|
||||
SDL_RenderSetLogicalSize(renderer, WINDOW_WIDTH, WINDOW_HEIGHT);
|
||||
|
||||
|
|
@ -24043,7 +24045,7 @@ VIDEO_BPP, SDL_SWSURFACE);*/
|
|||
cleanup();
|
||||
exit(1);
|
||||
}
|
||||
// SDL_SetSurfaceAlphaMod(img_color_btns[i], SDL_ALPHA_TRANSPARENT);
|
||||
|
||||
SDL_LockSurface(img_color_btns[i]);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue