Skip to content

Commit

Permalink
libgui|GuiApp: Determine pixel ratio when window is created
Browse files Browse the repository at this point in the history
No need any more to try to find out the pixel ratio beforehand.
  • Loading branch information
skyjake committed Sep 1, 2019
1 parent beadf7f commit dd1923a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doomsday/libs/gui/src/guiapp.cpp
Expand Up @@ -124,7 +124,7 @@ DE_PIMPL(GuiApp)
d2dFactory = nullptr;
}
#else
// Use a hidden SDL window to determine pixel ratio.
/* // Use a hidden SDL window to determine pixel ratio.
SDL_Window *temp =
SDL_CreateWindow("",
SDL_WINDOWPOS_UNDEFINED,
Expand All @@ -138,6 +138,7 @@ DE_PIMPL(GuiApp)
SDL_DestroyWindow(temp);
windowPixelRatio = float(pixels) / float(points);
*/
#endif
}

Expand Down

0 comments on commit dd1923a

Please sign in to comment.