Fix options position

See #3
This commit is contained in:
Alexander Batalov 2022-05-21 02:35:18 +03:00
parent 73d624a46c
commit ac3f8dacaa
1 changed files with 4 additions and 3 deletions

View File

@ -493,9 +493,10 @@ int optionsWindowInit()
memcpy(_opbtns[index], gOptionsWindowFrmData[cycle + 1], gOptionsWindowFrmSizes[OPTIONS_WINDOW_FRM_BUTTON_ON].width * gOptionsWindowFrmSizes[OPTIONS_WINDOW_FRM_BUTTON_ON].height); memcpy(_opbtns[index], gOptionsWindowFrmData[cycle + 1], gOptionsWindowFrmSizes[OPTIONS_WINDOW_FRM_BUTTON_ON].width * gOptionsWindowFrmSizes[OPTIONS_WINDOW_FRM_BUTTON_ON].height);
} }
gOptionsWindow = windowCreate( int optionsWindowX = (screenGetWidth() - gOptionsWindowFrmSizes[OPTIONS_WINDOW_FRM_BACKGROUND].width) / 2;
(640 - gOptionsWindowFrmSizes[OPTIONS_WINDOW_FRM_BACKGROUND].width) / 2, int optionsWindowY = (screenGetHeight() - gOptionsWindowFrmSizes[OPTIONS_WINDOW_FRM_BACKGROUND].height) / 2 - 60;
(480 - gOptionsWindowFrmSizes[OPTIONS_WINDOW_FRM_BACKGROUND].height) / 2 - 60, gOptionsWindow = windowCreate(optionsWindowX,
optionsWindowY,
gOptionsWindowFrmSizes[0].width, gOptionsWindowFrmSizes[0].width,
gOptionsWindowFrmSizes[0].height, gOptionsWindowFrmSizes[0].height,
256, 256,