Removed duplicated window size events, and added SDL_EVENT_WINDOW_PIXEL_SIZE_CHANGED
This commit is contained in:
1 parent
af0ec13fc3
commit
bf4095359c
17 files changed
+104
-145
No files matched your search
@@ -62,8 +62,8 @@ void loop()
|
||||
SDL_Event e;
|
||||
while (SDL_PollEvent(&e)) {
|
||||
|
||||
/* Re-create when window has been resized */
|
||||
if (e.type == SDL_EVENT_WINDOW_SIZE_CHANGED) {
|
||||
/* Re-create when window surface has been resized */
|
||||
if (e.type == SDL_EVENT_WINDOW_PIXEL_SIZE_CHANGED) {
|
||||
|
||||
SDL_DestroyRenderer(renderer);
|
||||
|
||||
|
||||
Reference in new issue
Block a user