Merged from revision: 7329

- Fixed Movement box and Militia Popup box x-coordinates in non-standard resolutions (by Buggler)

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7330 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Wanne
2014-07-12 10:10:13 +00:00
parent 3aa6e6e200
commit 0a16af6fe2
2 changed files with 33 additions and 33 deletions
+1 -1
View File
@@ -1693,7 +1693,7 @@ BOOLEAN ShadeMapElem( INT16 sMapX, INT16 sMapY, INT32 iColor )
void InitializeMilitiaPopup(void) void InitializeMilitiaPopup(void)
{ {
UINT16 xVal = 330; UINT16 xVal = 330 + xResOffset;
UINT16 yVal = 25; UINT16 yVal = 25;
if (iResolution >= _640x480 && iResolution < _800x600) if (iResolution >= _640x480 && iResolution < _800x600)
+2 -2
View File
@@ -237,8 +237,6 @@ extern MOUSE_REGION gCharInfoHandRegion;
extern MOUSE_REGION gCharInfoFaceRegion; extern MOUSE_REGION gCharInfoFaceRegion;
MOUSE_REGION gMapStatusBarsRegion; MOUSE_REGION gMapStatusBarsRegion;
SGPPoint MovePosition={450, 100 };
// which lines are selected? .. for assigning groups of mercs to the same thing // which lines are selected? .. for assigning groups of mercs to the same thing
BOOLEAN fSelectedListOfMercsForMapScreen[ CODE_MAXIMUM_NUMBER_OF_PLAYER_SLOTS ]; BOOLEAN fSelectedListOfMercsForMapScreen[ CODE_MAXIMUM_NUMBER_OF_PLAYER_SLOTS ];
BOOLEAN fResetTimerForFirstEntryIntoMapScreen = FALSE; BOOLEAN fResetTimerForFirstEntryIntoMapScreen = FALSE;
@@ -3809,6 +3807,7 @@ void SetUpMovingListsForSector( INT16 sSectorX, INT16 sSectorY, INT16 sSectorZ )
void CreatePopUpBoxForMovementBox( void ) void CreatePopUpBoxForMovementBox( void )
{ {
SGPPoint MovePosition = {450 + xResOffset, 100};
SGPPoint Position; SGPPoint Position;
SGPRect Dimensions; SGPRect Dimensions;
@@ -5336,6 +5335,7 @@ void CreateDestroyUpdatePanelButtons(INT32 iX, INT32 iY, BOOLEAN fFourWideMode )
/* /*
void CreateUpdateBox( void ) void CreateUpdateBox( void )
{ {
SGPPoint MovePosition = {450 + xResOffset, 100};
// create basic box // create basic box
CreatePopUpBox(&ghUpdateBox, AssignmentDimensions, MovePosition, (POPUP_BOX_FLAG_CLIP_TEXT|POPUP_BOX_FLAG_RESIZE )); CreatePopUpBox(&ghUpdateBox, AssignmentDimensions, MovePosition, (POPUP_BOX_FLAG_CLIP_TEXT|POPUP_BOX_FLAG_RESIZE ));