mirror of
https://github.com/alexbatalov/fallout2-ce.git
synced 2024-11-01 23:26:57 +00:00
Maintain skilldex window relative position
This commit is contained in:
parent
e907e3d729
commit
78e8adbecb
@ -185,7 +185,8 @@ int skilldexWindowInit()
|
||||
return -1;
|
||||
}
|
||||
|
||||
int skilldexWindowX = screenGetWidth() - gSkilldexFrmSizes[SKILLDEX_FRM_BACKGROUND].width - SKILLDEX_WINDOW_RIGHT_MARGIN;
|
||||
// Maintain original position relative to centered interface bar.
|
||||
int skilldexWindowX = (screenGetWidth() - 640) / 2 + 640 - gSkilldexFrmSizes[SKILLDEX_FRM_BACKGROUND].width - SKILLDEX_WINDOW_RIGHT_MARGIN;
|
||||
int skilldexWindowY = screenGetHeight() - 100 - 1 - gSkilldexFrmSizes[SKILLDEX_FRM_BACKGROUND].height - SKILLDEX_WINDOW_BOTTOM_MARGIN;
|
||||
gSkilldexWindow = windowCreate(skilldexWindowX,
|
||||
skilldexWindowY,
|
||||
|
Loading…
Reference in New Issue
Block a user