mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-25 14:24:45 +00:00
vid_common: fix window_center_x/y initialization
This commit is contained in:
parent
844b3a39a7
commit
4ced29ee8f
@ -234,12 +234,12 @@ R_SaveVideoMode
|
|||||||
*/
|
*/
|
||||||
void R_SaveVideoMode( int w, int h )
|
void R_SaveVideoMode( int w, int h )
|
||||||
{
|
{
|
||||||
host.window_center_x = glState.width / 2;
|
|
||||||
host.window_center_y = glState.height / 2;
|
|
||||||
|
|
||||||
glState.width = w;
|
glState.width = w;
|
||||||
glState.height = h;
|
glState.height = h;
|
||||||
|
|
||||||
|
host.window_center_x = w / 2;
|
||||||
|
host.window_center_y = h / 2;
|
||||||
|
|
||||||
Cvar_SetValue( "width", w );
|
Cvar_SetValue( "width", w );
|
||||||
Cvar_SetValue( "height", h );
|
Cvar_SetValue( "height", h );
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user