mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
Do proper error handling inside Screen::ResizeScreen()
Instead of passing the error codes out of the function, just handle the errors directly as they happen, and fail gracefully if something goes wrong instead of continuing.
This commit is contained in:
@@ -8,7 +8,7 @@ class Screen
|
||||
public:
|
||||
Screen();
|
||||
|
||||
int ResizeScreen(int x, int y);
|
||||
void ResizeScreen(int x, int y);
|
||||
void GetWindowSize(int* x, int* y);
|
||||
|
||||
void UpdateScreen(SDL_Surface* buffer, SDL_Rect* rect);
|
||||
@@ -17,7 +17,7 @@ public:
|
||||
|
||||
const SDL_PixelFormat* GetFormat();
|
||||
|
||||
int toggleFullScreen();
|
||||
void toggleFullScreen();
|
||||
void toggleStretchMode();
|
||||
void toggleLinearFilter();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user