@@ -4174,8 +4174,8 @@ void CG_DrawIconBackground(void)
4174
4174
4175
4175
float holdFloat = (float ) backgroundHeight;
4176
4176
backgroundHeight = (int ) (holdFloat*cg.iconHUDPercent );
4177
- CG_DrawPic ( backgroundXPos, backgroundYPos, backgroundWidth, -backgroundHeight, background); // Top half
4178
- CG_DrawPic ( backgroundXPos, backgroundYPos-2 ,backgroundWidth, backgroundHeight, background); // Bottom half
4177
+ CG_DrawPic ( backgroundXPos + ( 128 * ( 1 - cgs. widthRatioCoef ) ) , backgroundYPos, backgroundWidth * cgs. widthRatioCoef , -backgroundHeight, background); // Top half
4178
+ CG_DrawPic ( backgroundXPos + ( 128 * ( 1 - cgs. widthRatioCoef ) ) , backgroundYPos-2 ,backgroundWidth * cgs. widthRatioCoef , backgroundHeight, background); // Bottom half
4179
4179
}
4180
4180
return ;
4181
4181
}
@@ -4207,8 +4207,8 @@ void CG_DrawIconBackground(void)
4207
4207
cgi_R_SetColor ( colorTable[CT_WHITE] );
4208
4208
float holdFloat = (float ) backgroundHeight;
4209
4209
backgroundHeight = (int ) (holdFloat*cg.iconHUDPercent );
4210
- CG_DrawPic ( backgroundXPos, backgroundYPos, backgroundWidth, -backgroundHeight, background); // Top half
4211
- CG_DrawPic ( backgroundXPos, backgroundYPos-2 ,backgroundWidth, backgroundHeight, background); // Bottom half
4210
+ CG_DrawPic ( backgroundXPos + ( 128 * ( 1 - cgs. widthRatioCoef ) ) , backgroundYPos, backgroundWidth * cgs. widthRatioCoef , -backgroundHeight, background); // Top half
4211
+ CG_DrawPic ( backgroundXPos + ( 128 * ( 1 - cgs. widthRatioCoef ) ) , backgroundYPos-2 ,backgroundWidth * cgs. widthRatioCoef , backgroundHeight, background); // Bottom half
4212
4212
}
4213
4213
if ((cg.inventorySelectTime +WEAPON_SELECT_TIME)>cg.time )
4214
4214
{
0 commit comments