Changeset 756162f in opengl-game for vulkan-game.cpp
- Timestamp:
- May 1, 2021, 6:26:44 PM (4 years ago)
- Branches:
- feature/imgui-sdl
- Children:
- 9d21aac
- Parents:
- b8072d3 (diff), cb6fabb (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - git-author:
- Dmitry Portnoy <dportnoy@…> (05/01/21 18:26:23)
- git-committer:
- Dmitry Portnoy <dportnoy@…> (05/01/21 18:26:44)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vulkan-game.cpp
rb8072d3 r756162f 853 853 ImGui::NewFrame(); 854 854 855 (this->*currentRenderScreenFn)(gui->getWindowWidth(), gui->getWindowHeight()); 855 int w, h; 856 SDL_GetWindowSize(((GameGui_SDL*)gui)->window, &w, &h); 857 858 // Probably a retina display 859 // TODO: Find a better fix for this. Maybe I should use SDL_Vulkan_GetWindowSize here instead 860 // of SDL_Vulkan_GetDrawableSize 861 if (w < gui->getWindowWidth() && h < gui->getWindowHeight()) { 862 (this->*currentRenderScreenFn)(w, h); 863 } else { 864 (this->*currentRenderScreenFn)(gui->getWindowWidth(), gui->getWindowHeight()); 865 } 856 866 857 867 ImGui::Render();
Note:
See TracChangeset
for help on using the changeset viewer.