Skip to content

Commit eb3d5c1

Browse files
committed
Use 4K HUD for =2560 ScreenWidth
1 parent 4ee7052 commit eb3d5c1

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

cl_dll/ammo.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ void WeaponsResource :: LoadWeaponSprites( WEAPON *pWeapon )
7474
{
7575
int i, iRes;
7676

77-
if (ScreenWidth > 2560 && ScreenHeight > 1600)
77+
if (ScreenWidth >= 2560 && ScreenHeight >= 1600)
7878
iRes = 2560;
7979
else if (ScreenWidth >= 1280 && ScreenHeight > 720)
8080
iRes = 1280;
@@ -332,7 +332,7 @@ int CHudAmmo::VidInit(void)
332332
gWR.LoadAllWeaponSprites();
333333

334334
int nScale = 1;
335-
if (ScreenWidth > 2560 && ScreenHeight > 1600)
335+
if (ScreenWidth >= 2560 && ScreenHeight >= 1600)
336336
nScale = 4;
337337
else if (ScreenWidth >= 1280 && ScreenHeight > 720)
338338
nScale = 3;

cl_dll/hud.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,7 @@ void CHud :: VidInit( void )
755755
m_hsprLogo = 0;
756756
m_hsprCursor = 0;
757757

758-
if (ScreenWidth > 2560 && ScreenHeight > 1600)
758+
if (ScreenWidth >= 2560 && ScreenHeight >= 1600)
759759
m_iRes = 2560;
760760
else if (ScreenWidth >= 1280 && ScreenHeight > 720)
761761
m_iRes = 1280;

cl_dll/util.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ HSPRITE LoadSprite(const char *pszName)
121121
int iRes;
122122
char sz[256];
123123

124-
if (ScreenWidth > 2560 && ScreenHeight > 1600)
124+
if (ScreenWidth >= 2560 && ScreenHeight >= 1600)
125125
iRes = 2560;
126126
else if (ScreenWidth >= 1280 && ScreenHeight > 720)
127127
iRes = 1280;

cl_dll/view.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -880,7 +880,7 @@ void V_CalcViewModelLag(ref_params_t* pparams, Vector& origin, Vector& angles, V
880880

881881
origin = origin + (vDifference * -1.0f) * m_flScale;
882882

883-
if (ScreenWidth > 2560 && ScreenHeight > 1600)
883+
if (ScreenWidth >= 2560 && ScreenHeight >= 1600)
884884
HUD_LAG_VALUE = 17;
885885
else if (ScreenWidth >= 1280 && ScreenHeight > 720)
886886
HUD_LAG_VALUE = 13;

0 commit comments

Comments
 (0)