Skip to content
Permalink
Browse files

Replace windowed fullscreen with modal

  • Loading branch information...
dydzio0614 committed Feb 10, 2017
1 parent 53b2add commit f7dbd207ebe82d36c04f29188399c06c92daf891
Showing with 3 additions and 3 deletions.
  1. +3 −3 client/CMT.cpp
@@ -1030,7 +1030,7 @@ static bool recreateWindow(int w, int h, int bpp, bool fullscreen, int displayIn
if(fullscreen)
{
//in full-screen mode always use desktop resolution
mainWindow = SDL_CreateWindow(NAME.c_str(), SDL_WINDOWPOS_UNDEFINED_DISPLAY(displayIndex),SDL_WINDOWPOS_UNDEFINED_DISPLAY(displayIndex), 0, 0, SDL_WINDOW_FULLSCREEN_DESKTOP);
mainWindow = SDL_CreateWindow(NAME.c_str(), SDL_WINDOWPOS_UNDEFINED_DISPLAY(displayIndex),SDL_WINDOWPOS_UNDEFINED_DISPLAY(displayIndex), w, h, SDL_WINDOW_FULLSCREEN);
SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, "linear");
}
else
@@ -1056,9 +1056,9 @@ static bool recreateWindow(int w, int h, int bpp, bool fullscreen, int displayIn
SDL_GetRendererInfo(mainRenderer,&info);
logGlobal->infoStream() << "Created renderer " << info.name;

SDL_RenderSetLogicalSize(mainRenderer, w, h);
//SDL_RenderSetLogicalSize(mainRenderer, w, h);

SDL_RenderSetViewport(mainRenderer, nullptr);
//SDL_RenderSetViewport(mainRenderer, nullptr);



0 comments on commit f7dbd20

Please sign in to comment.
You can’t perform that action at this time.