Archived
1
Fork 0

Set HiDPI flag for all SDL windows

This commit is contained in:
redstrate 2021-10-12 11:12:51 -04:00
parent d8c0b0486a
commit 7d6ded0d69

View file

@ -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) {
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)
sdl_flags |= SDL_WINDOW_BORDERLESS;
if(flags == WindowFlags::Resizable)