sa2: Make window resizable.
Ctrl-F6 will still loop between 1x ans 2x sizes.
This commit is contained in:
parent
b59e7605e9
commit
7067ad150e
1 changed files with 1 additions and 1 deletions
|
@ -230,7 +230,7 @@ void run_sdl(int argc, const char * argv [])
|
|||
|
||||
std::cerr << std::fixed << std::setprecision(2);
|
||||
|
||||
std::shared_ptr<SDL_Window> win(SDL_CreateWindow(g_pAppTitle.c_str(), SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, sw, sh, SDL_WINDOW_SHOWN), SDL_DestroyWindow);
|
||||
std::shared_ptr<SDL_Window> win(SDL_CreateWindow(g_pAppTitle.c_str(), SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, sw, sh, SDL_WINDOW_SHOWN | SDL_WINDOW_RESIZABLE), SDL_DestroyWindow);
|
||||
if (!win)
|
||||
{
|
||||
std::cerr << "SDL_CreateWindow Error: " << SDL_GetError() << std::endl;
|
||||
|
|
Loading…
Add table
Reference in a new issue