mirror of https://github.com/OpenRCT2/OpenRCT2.git
Pass SDL_WINDOW_ALLOW_HIGHDPI to SDL_CreateWindow (#10125)
This commit is contained in:
parent
28e7d90efb
commit
6eea943083
|
@ -33,6 +33,7 @@
|
|||
- Fix: [#10106]: Ride circuits should not be used for modes that do not support it.
|
||||
- Improved: [#9466] Add the rain weather effect to the OpenGL renderer.
|
||||
- Improved: [#9987] Minimum load rounding.
|
||||
- Improved: [#10125] Better support for high DPI screens.
|
||||
|
||||
0.2.3 (2019-07-10)
|
||||
------------------------------------------------------------------------
|
||||
|
|
|
@ -639,7 +639,7 @@ private:
|
|||
height = 480;
|
||||
|
||||
// Create window in window first rather than fullscreen so we have the display the window is on first
|
||||
uint32_t flags = SDL_WINDOW_RESIZABLE;
|
||||
uint32_t flags = SDL_WINDOW_RESIZABLE | SDL_WINDOW_ALLOW_HIGHDPI;
|
||||
if (gConfigGeneral.drawing_engine == DRAWING_ENGINE_OPENGL)
|
||||
{
|
||||
flags |= SDL_WINDOW_OPENGL;
|
||||
|
|
|
@ -23,7 +23,7 @@ OpenGLFramebuffer::OpenGLFramebuffer(SDL_Window* window)
|
|||
_id = BACKBUFFER_ID;
|
||||
_texture = 0;
|
||||
_depth = 0;
|
||||
SDL_GetWindowSize(window, &_width, &_height);
|
||||
SDL_GL_GetDrawableSize(window, &_width, &_height);
|
||||
}
|
||||
|
||||
OpenGLFramebuffer::OpenGLFramebuffer(int32_t width, int32_t height, bool depth, bool integer)
|
||||
|
|
Loading…
Reference in New Issue