comparison Applications/Platforms/Sdl/SdlWindow.cpp @ 1804:5a872e69c74f

reorganization
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 20 May 2021 14:48:51 +0200
parents 9ac2a65d4172
children 3889ae96d2e9
comparison
equal deleted inserted replaced
1803:d1849468729b 1804:5a872e69c74f
35 #include <SDL_video.h> 35 #include <SDL_video.h>
36 #include <SDL.h> 36 #include <SDL.h>
37 37
38 namespace OrthancStone 38 namespace OrthancStone
39 { 39 {
40 SdlWindow::SdlWindow(const char* title, 40 SdlWindow::SdlWindow(const std::string& title,
41 unsigned int width, 41 unsigned int width,
42 unsigned int height, 42 unsigned int height,
43 bool enableOpenGl, 43 bool enableOpenGl,
44 bool allowDpiScaling) : 44 bool allowDpiScaling) :
45 maximized_(false) 45 maximized_(false)
85 windowFlags |= SDL_WINDOW_ALLOW_HIGHDPI; 85 windowFlags |= SDL_WINDOW_ALLOW_HIGHDPI;
86 } 86 }
87 #endif 87 #endif
88 // WIN32 88 // WIN32
89 89
90 window_ = SDL_CreateWindow(title, 90 window_ = SDL_CreateWindow(title.c_str(),
91 SDL_WINDOWPOS_UNDEFINED, 91 SDL_WINDOWPOS_UNDEFINED,
92 SDL_WINDOWPOS_UNDEFINED, 92 SDL_WINDOWPOS_UNDEFINED,
93 width, height, windowFlags); 93 width, height, windowFlags);
94 94
95 if (window_ == NULL) 95 if (window_ == NULL)