mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-03-25 18:10:46 +00:00
Removed duplicated window size events, and added SDL_EVENT_WINDOW_PIXEL_SIZE_CHANGED
This commit is contained in:
@@ -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