mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-02-18 18:11:40 +00:00
Fix multiplayer -> player setup
This commit is contained in:
parent
39e69c90f0
commit
5a4554cfb5
1 changed files with 9 additions and 2 deletions
|
@ -1063,16 +1063,23 @@ R_SetLightLevel (void)
|
|||
}
|
||||
}
|
||||
|
||||
static void R_CleanuBorders(void)
|
||||
static void R_CleanupBorders(void)
|
||||
{
|
||||
float h_border, v_border;
|
||||
float imgTransform[] = { .0f, .0f, .0f, .0f, .0f, .0f, .0f, 1.f };
|
||||
|
||||
// without any borders
|
||||
if (vid.height == r_newrefdef.height && vid.width == r_newrefdef.width)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
// not in game
|
||||
if (r_newrefdef.rdflags & RDF_NOWORLDMODEL)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
h_border = (float)(vid.height - r_newrefdef.height) / vid.height / 2.0f;
|
||||
v_border = (float)(vid.width - r_newrefdef.width) / vid.width / 2.0f;
|
||||
|
||||
|
@ -1118,7 +1125,7 @@ RE_RenderFrame (refdef_t *fd)
|
|||
R_SetLightLevel ();
|
||||
R_SetVulkan2D (&vk_viewport, &vk_scissor);
|
||||
|
||||
R_CleanuBorders();
|
||||
R_CleanupBorders();
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue