Changeset d2f607c in opengl-game for game-gui-sdl.cpp
- Timestamp:
- Sep 12, 2019, 5:28:02 PM (5 years ago)
- Branches:
- feature/imgui-sdl, master, points-test
- Children:
- 203ab1b
- Parents:
- 7bf5433
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
game-gui-sdl.cpp
r7bf5433 rd2f607c 59 59 // otherwise you will not receive a High DPI OpenGL canvas. 60 60 61 uint32_t flags = SDL_WINDOW_VULKAN; 61 SDL_DisplayMode dm; 62 SDL_GetCurrentDisplayMode(0, &dm); 62 63 63 flags |= fullscreen ? SDL_WINDOW_FULLSCREEN_DESKTOP : SDL_WINDOW_RESIZABLE; 64 if (fullscreen) { 65 width = dm.w; 66 height = dm.h; 67 } 68 69 uint32_t flags = SDL_WINDOW_VULKAN | (fullscreen ? SDL_WINDOW_FULLSCREEN : SDL_WINDOW_RESIZABLE); 64 70 65 71 window = SDL_CreateWindow(title.c_str(),
Note:
See TracChangeset
for help on using the changeset viewer.