mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-02-17 01:21:12 +00:00
Fix fullscreen value in hacks (f1b6b827
)
This commit is contained in:
parent
2a18f02186
commit
56a8ab6d4d
2 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue