Fix Android 10 resource sync and fullscreen; record Global ROM comparison
This commit is contained in:
@@ -31,11 +31,16 @@ VulkanWindow::VulkanWindow(bool vsync, int init_width, int init_height) : vsync_
|
||||
SDL_SetHint(SDL_HINT_ANDROID_TRAP_BACK_BUTTON, "1");
|
||||
if (!SDL_Init(SDL_INIT_VIDEO)) throw std::runtime_error(SDL_GetError());
|
||||
SDL_SetHint(SDL_HINT_ORIENTATIONS, "LandscapeLeft LandscapeRight");
|
||||
SDL_WindowFlags window_flags = SDL_WINDOW_VULKAN | SDL_WINDOW_RESIZABLE | SDL_WINDOW_HIGH_PIXEL_DENSITY;
|
||||
#ifdef __ANDROID__
|
||||
// Keep SDL's window style in sync with the Activity's immersive mode on Android 10.
|
||||
window_flags |= SDL_WINDOW_FULLSCREEN;
|
||||
#endif
|
||||
window_ = SDL_CreateWindow(
|
||||
"Metin2 Native Vulkan Client",
|
||||
std::max(init_width, 320),
|
||||
std::max(init_height, 240),
|
||||
SDL_WINDOW_VULKAN | SDL_WINDOW_RESIZABLE | SDL_WINDOW_HIGH_PIXEL_DENSITY);
|
||||
window_flags);
|
||||
if (!window_) throw std::runtime_error(SDL_GetError());
|
||||
SDL_StartTextInput(window_);
|
||||
Uint32 extension_count = 0;
|
||||
|
||||
Reference in New Issue
Block a user