Couple buildfixes after the g_display refactoring

Should help #17250
This commit is contained in:
Henrik Rydgård 2023-04-08 09:24:04 +02:00
parent ccab375ddb
commit 42efc08e64
2 changed files with 3 additions and 3 deletions

View File

@ -1050,8 +1050,8 @@ VkResult VulkanContext::ReinitSurface() {
}
// Finally, create the vulkan surface.
image_size.width = pixel_xres;
image_size.height = pixel_yres;
image_size.width = g_display.pixel_xres;
image_size.height = g_display.pixel_yres;
display.displayMode = display_mode;
display.imageExtent = image_size;

View File

@ -428,7 +428,7 @@ void System_LaunchUrl(LaunchUrlType urlType, const char *url)
static int mainInternal(QApplication &a) {
#ifdef MOBILE_DEVICE
emugl = new MainUI();
emugl->resize(pixel_xres, pixel_yres);
emugl->resize(g_display.pixel_xres, g_display.pixel_yres);
emugl->showFullScreen();
#endif
EnableFZ();