Changeset 83b5b4b in opengl-game for opengl-game.cpp
- Timestamp:
- Oct 4, 2019, 8:19:15 PM (5 years ago)
- Branches:
- feature/imgui-sdl, master, points-test
- Children:
- 0b1b52d
- Parents:
- 5b02676
- git-author:
- Dmitry Portnoy <dmitry.portnoy@…> (10/04/19 20:16:22)
- git-committer:
- Dmitry Portnoy <dmitry.portnoy@…> (10/04/19 20:19:15)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
opengl-game.cpp
r5b02676 r83b5b4b 5 5 #include "consts.hpp" 6 6 #include "logger.hpp" 7 8 #include "utils.hpp" 7 9 8 10 using namespace std; … … 66 68 } 67 69 70 viewport = { 0, 0, gui->getWindowWidth(), gui->getWindowHeight() }; 71 68 72 cout << "Target window size: (" << width << ", " << height << ")" << endl; 69 cout << "Actual window size: (" << gui->getWindowWidth() << ", " << gui->getWindowHeight()<< ")" << endl;73 cout << "Actual window size: (" << viewport.width << ", " << viewport.height << ")" << endl; 70 74 71 75 return RTWO_SUCCESS; … … 141 145 case UI_EVENT_WINDOWRESIZE: 142 146 cout << "Window resize event detected" << endl; 147 viewport.width = e.windowResize.width; 148 viewport.height = e.windowResize.height; 143 149 break; 144 150 default:
Note:
See TracChangeset
for help on using the changeset viewer.