mirror of
https://github.com/libretro/RetroArch
synced 2025-04-09 21:45:45 +00:00
Merge pull request #6418 from bearoso/master
Fix multi-line text spacing in menus with Vulkan driver.
This commit is contained in:
commit
a357198bda
@ -455,6 +455,7 @@ static bool gfx_ctx_x_set_resize(void *data,
|
|||||||
if (!vulkan_create_swapchain(&x->vk, width, height, x->g_interval))
|
if (!vulkan_create_swapchain(&x->vk, width, height, x->g_interval))
|
||||||
{
|
{
|
||||||
RARCH_ERR("[X/Vulkan]: Failed to update swapchain.\n");
|
RARCH_ERR("[X/Vulkan]: Failed to update swapchain.\n");
|
||||||
|
x->vk.swapchain = VK_NULL_HANDLE;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -469,7 +470,7 @@ static bool gfx_ctx_x_set_resize(void *data,
|
|||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return false;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void *gfx_ctx_x_init(video_frame_info_t *video_info, void *data)
|
static void *gfx_ctx_x_init(video_frame_info_t *video_info, void *data)
|
||||||
|
@ -240,7 +240,8 @@ static void vulkan_raster_font_render_message(
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
line_height = scale / font->font_driver->get_line_height(font->font_data);
|
line_height = (float) font->font_driver->get_line_height(font->font_data) *
|
||||||
|
scale / font->vk->vp.height;
|
||||||
|
|
||||||
for (;;)
|
for (;;)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user