Fix skilldex window position

See #3
This commit is contained in:
Alexander Batalov 2022-05-21 03:10:45 +03:00
parent 227bd81fda
commit 9d53098427
1 changed files with 7 additions and 2 deletions

View File

@ -18,6 +18,9 @@
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#define SKILLDEX_WINDOW_RIGHT_MARGIN 4
#define SKILLDEX_WINDOW_BOTTOM_MARGIN 6
// 0x51D43C // 0x51D43C
bool gSkilldexWindowIsoWasEnabled = false; bool gSkilldexWindowIsoWasEnabled = false;
@ -182,8 +185,10 @@ int skilldexWindowInit()
return -1; return -1;
} }
gSkilldexWindow = windowCreate(640 - gSkilldexFrmSizes[SKILLDEX_FRM_BACKGROUND].width - 4, int skilldexWindowX = screenGetWidth() - gSkilldexFrmSizes[SKILLDEX_FRM_BACKGROUND].width - SKILLDEX_WINDOW_RIGHT_MARGIN;
379 - gSkilldexFrmSizes[SKILLDEX_FRM_BACKGROUND].height - 6, int skilldexWindowY = screenGetHeight() - 100 - 1 - gSkilldexFrmSizes[SKILLDEX_FRM_BACKGROUND].height - SKILLDEX_WINDOW_BOTTOM_MARGIN;
gSkilldexWindow = windowCreate(skilldexWindowX,
skilldexWindowY,
gSkilldexFrmSizes[SKILLDEX_FRM_BACKGROUND].width, gSkilldexFrmSizes[SKILLDEX_FRM_BACKGROUND].width,
gSkilldexFrmSizes[SKILLDEX_FRM_BACKGROUND].height, gSkilldexFrmSizes[SKILLDEX_FRM_BACKGROUND].height,
256, 256,