Set HiDPI flag for all SDL windows
This commit is contained in:
parent
d8c0b0486a
commit
7d6ded0d69
1 changed files with 1 additions and 1 deletions
|
@ -80,7 +80,7 @@ bool platform::supports_feature(const PlatformFeature feature) {
|
||||||
platform::window_ptr platform::open_window(const std::string_view title, const prism::Rectangle rect, const WindowFlags flags) {
|
platform::window_ptr platform::open_window(const std::string_view title, const prism::Rectangle rect, const WindowFlags flags) {
|
||||||
auto& win = windows.emplace_back();
|
auto& win = windows.emplace_back();
|
||||||
|
|
||||||
int sdl_flags = SDL_WINDOW_VULKAN;
|
int sdl_flags = SDL_WINDOW_VULKAN | SDL_WINDOW_ALLOW_HIGHDPI;
|
||||||
if(flags == WindowFlags::Borderless)
|
if(flags == WindowFlags::Borderless)
|
||||||
sdl_flags |= SDL_WINDOW_BORDERLESS;
|
sdl_flags |= SDL_WINDOW_BORDERLESS;
|
||||||
if(flags == WindowFlags::Resizable)
|
if(flags == WindowFlags::Resizable)
|
||||||
|
|
Reference in a new issue