Changeset 8d96e95 in opengl-game for sdl-game.cpp
- Timestamp:
- Feb 14, 2021, 6:37:24 PM (4 years ago)
- Branches:
- feature/imgui-sdl
- Children:
- 6053b24
- Parents:
- 81869ef
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sdl-game.cpp
r81869ef r8d96e95 170 170 if (shouldRecreateSwapChain) { 171 171 gui->refreshWindowSize(); 172 173 int width = gui->getWindowWidth(); 174 int height = gui->getWindowHeight(); 175 if (width > 0 && height > 0) { 172 const bool isMinimized = gui->getWindowWidth() == 0 || gui->getWindowHeight() == 0; 173 174 if (!isMinimized) { 176 175 // TODO: This should be used if the min image count changes, presumably because a new surface was created 177 176 // with a different image count or something like that. Maybe I want to add code to query for a new min image count … … 211 210 212 211 gui->refreshWindowSize(); 213 214 const bool isMinimized = gui->getWindowWidth() <= 0 || gui->getWindowHeight() <= 0; 212 const bool isMinimized = gui->getWindowWidth() == 0 || gui->getWindowHeight() == 0; 215 213 216 214 if (!isMinimized) {
Note:
See TracChangeset
for help on using the changeset viewer.