Fix fullscreen value in hacks (f1b6b827)

This commit is contained in:
Denis Pauk 2021-03-10 23:25:59 +02:00
parent 2a18f02186
commit 56a8ab6d4d
2 changed files with 3 additions and 3 deletions

View file

@ -1901,7 +1901,7 @@ RE_InitContext(void *win)
if(win == NULL)
{
ri.Sys_Error(ERR_FATAL, "RE_InitContext() must not be called with NULL argument!");
ri.Sys_Error(ERR_FATAL, "%s() must not be called with NULL argument!", __func__);
return false;
}
@ -2299,7 +2299,7 @@ SWimp_SetMode(int *pwidth, int *pheight, int mode, int fullscreen )
R_Printf(PRINT_ALL, " %dx%d (vid_fullscreen %i)\n", *pwidth, *pheight, fullscreen);
if (fullscreen == 1)
if (fullscreen == 2)
{
int real_height, real_width;

View file

@ -1861,7 +1861,7 @@ qboolean QVk_Init(void)
R_Printf(PRINT_ALL, "...created Vulkan swapchain\n");
// set viewport and scissor
if (vid_fullscreen->value == 1)
if (vid_fullscreen->value == 2)
{
// Center viewport in "keep resolution mode".
vk_viewport.x = max(0.f, (float)(vk_swapchain.extent.width - (uint32_t)(vid.width)) / 2.0f);