From c00d32f30fd5b73eaefdcc30a7b24d14ef1041fa Mon Sep 17 00:00:00 2001 From: Hans-Kristian Arntzen Date: Sun, 6 Mar 2016 12:18:11 +0100 Subject: [PATCH] Vulkan: Get correct window mode size. --- gfx/drivers/vulkan.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gfx/drivers/vulkan.c b/gfx/drivers/vulkan.c index 7511f85c6d..632b29e3e9 100644 --- a/gfx/drivers/vulkan.c +++ b/gfx/drivers/vulkan.c @@ -928,6 +928,8 @@ static void *vulkan_init(const video_info_t *video, gfx_ctx_ctl(GFX_CTL_GET_VIDEO_SIZE, &mode); vk->full_x = mode.width; vk->full_y = mode.height; + mode.width = 0; + mode.height = 0; RARCH_LOG("Detecting screen resolution %ux%u.\n", vk->full_x, vk->full_y); interval = video->vsync ? settings->video.swap_interval : 0; @@ -942,6 +944,8 @@ static void *vulkan_init(const video_info_t *video, win_height = vk->full_y; } + mode.width = win_width; + mode.height = win_height; mode.fullscreen = video->fullscreen; if (!gfx_ctx_ctl(GFX_CTL_SET_VIDEO_MODE, &mode)) goto error;