mirror of
https://github.com/1dot13/source.git
synced 2026-09-02 14:36:06 +02:00
Fix widescreen UI militia popup box y-coordinate (#196)
This commit is contained in:
@@ -1792,11 +1792,16 @@ void InitializeMilitiaPopup(void)
|
|||||||
const UINT16 xVal = 330 + xResOffset;
|
const UINT16 xVal = 330 + xResOffset;
|
||||||
const UINT16 yVal = 25 + yResOffset;
|
const UINT16 yVal = 25 + yResOffset;
|
||||||
|
|
||||||
if (isWidescreenUI() || iResolution >= _1024x768)
|
if (iResolution >= _1024x768)
|
||||||
{
|
{
|
||||||
MAP_MILITIA_BOX_POS_X = xVal + 190;
|
MAP_MILITIA_BOX_POS_X = xVal + 190;
|
||||||
MAP_MILITIA_BOX_POS_Y = yVal + 285;
|
MAP_MILITIA_BOX_POS_Y = yVal + 285;
|
||||||
}
|
}
|
||||||
|
else if (isWidescreenUI())
|
||||||
|
{
|
||||||
|
MAP_MILITIA_BOX_POS_X = xVal + 190;
|
||||||
|
MAP_MILITIA_BOX_POS_Y = yVal + 116;
|
||||||
|
}
|
||||||
else if (iResolution >= _800x600)
|
else if (iResolution >= _800x600)
|
||||||
{
|
{
|
||||||
MAP_MILITIA_BOX_POS_X = xVal + 77;
|
MAP_MILITIA_BOX_POS_X = xVal + 77;
|
||||||
|
|||||||
Reference in New Issue
Block a user