mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-01-21 00:41:05 +00:00
HUD: Fix centering of scaled crosshair
This commit is contained in:
parent
712016783b
commit
44969748fb
1 changed files with 2 additions and 2 deletions
|
@ -1620,8 +1620,8 @@ SCR_DrawCrosshair(void)
|
|||
scale = SCR_ClampScale(crosshair_scale->value);
|
||||
}
|
||||
|
||||
Draw_PicScaled(scr_vrect.x + ((scr_vrect.width - crosshair_width) >> 1),
|
||||
scr_vrect.y + ((scr_vrect.height - crosshair_height) >> 1),
|
||||
Draw_PicScaled(scr_vrect.x + (scr_vrect.width - crosshair_width * scale) / 2,
|
||||
scr_vrect.y + (scr_vrect.height - crosshair_height * scale) / 2,
|
||||
crosshair_pic, scale);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue