Don't go outside the screen (memory corruptions)

This commit is contained in:
2022-08-02 12:51:59 +02:00
parent f4973bdf84
commit 9590362bec
4 changed files with 42 additions and 40 deletions

View File

@@ -32,8 +32,8 @@ SDL_Surface * ScreenSet ( int Width, int Height, int Bits, SDL_Surface * Screen
Screen = SDL_SetVideoMode ( Width, Height, Bits,
//SDL_SWSURFACE //|
SDL_HWSURFACE |
SDL_DOUBLEBUF //|
//SDL_RESIZABLE //|
SDL_DOUBLEBUF |
SDL_RESIZABLE //|
//SDL_FULLSCREEN //|
);
return Screen;