fix refresh rect
This commit is contained in:
parent
bd6db5ba7c
commit
b4da17df58
|
@ -59,12 +59,7 @@ static bool gDisplayMonitorInitialized = false;
|
||||||
// The rectangle that display monitor occupies in the main interface window.
|
// The rectangle that display monitor occupies in the main interface window.
|
||||||
//
|
//
|
||||||
// 0x518510
|
// 0x518510
|
||||||
static const Rect gDisplayMonitorRect = {
|
static Rect gDisplayMonitorRect;
|
||||||
DISPLAY_MONITOR_X,
|
|
||||||
DISPLAY_MONITOR_Y,
|
|
||||||
DISPLAY_MONITOR_X + DISPLAY_MONITOR_WIDTH - 1,
|
|
||||||
DISPLAY_MONITOR_Y + DISPLAY_MONITOR_HEIGHT - 1,
|
|
||||||
};
|
|
||||||
|
|
||||||
// 0x518520
|
// 0x518520
|
||||||
static int gDisplayMonitorScrollDownButton = -1;
|
static int gDisplayMonitorScrollDownButton = -1;
|
||||||
|
@ -106,6 +101,13 @@ static int gConsoleFilePrintCount = 0;
|
||||||
int displayMonitorInit()
|
int displayMonitorInit()
|
||||||
{
|
{
|
||||||
if (!gDisplayMonitorInitialized) {
|
if (!gDisplayMonitorInitialized) {
|
||||||
|
gDisplayMonitorRect = {
|
||||||
|
DISPLAY_MONITOR_X,
|
||||||
|
DISPLAY_MONITOR_Y,
|
||||||
|
DISPLAY_MONITOR_X + DISPLAY_MONITOR_WIDTH - 1,
|
||||||
|
DISPLAY_MONITOR_Y + DISPLAY_MONITOR_HEIGHT - 1,
|
||||||
|
};
|
||||||
|
|
||||||
int oldFont = fontGetCurrent();
|
int oldFont = fontGetCurrent();
|
||||||
fontSetCurrent(DISPLAY_MONITOR_FONT);
|
fontSetCurrent(DISPLAY_MONITOR_FONT);
|
||||||
|
|
||||||
|
|
|
@ -161,7 +161,7 @@ static int gSingleAttackButton = -1;
|
||||||
static int gInterfaceCurrentHand = HAND_LEFT;
|
static int gInterfaceCurrentHand = HAND_LEFT;
|
||||||
|
|
||||||
// 0x518F7C
|
// 0x518F7C
|
||||||
static const Rect gInterfaceBarMainActionRect = { 267 + 160, 26, 455 + 160, 93 };
|
static Rect gInterfaceBarMainActionRect;
|
||||||
|
|
||||||
// 0x518F8C
|
// 0x518F8C
|
||||||
static int gChangeHandsButton = -1;
|
static int gChangeHandsButton = -1;
|
||||||
|
@ -172,7 +172,7 @@ static bool gInterfaceBarEndButtonsIsVisible = false;
|
||||||
// Combat mode curtains rect.
|
// Combat mode curtains rect.
|
||||||
//
|
//
|
||||||
// 0x518FA0
|
// 0x518FA0
|
||||||
static const Rect gInterfaceBarEndButtonsRect = { 580 + 160, 38, 637 + 160, 96 };
|
static Rect gInterfaceBarEndButtonsRect;
|
||||||
|
|
||||||
// 0x518FB0
|
// 0x518FB0
|
||||||
static int gEndTurnButton = -1;
|
static int gEndTurnButton = -1;
|
||||||
|
@ -181,7 +181,7 @@ static int gEndTurnButton = -1;
|
||||||
static int gEndCombatButton = -1;
|
static int gEndCombatButton = -1;
|
||||||
|
|
||||||
// 0x518FD4
|
// 0x518FD4
|
||||||
static const Rect gInterfaceBarActionPointsBarRect = { 316 + 160, 14, 406 + 160, 19 };
|
static Rect gInterfaceBarActionPointsBarRect;
|
||||||
|
|
||||||
// 0x518FE8
|
// 0x518FE8
|
||||||
static IndicatorDescription gIndicatorDescriptions[INDICATOR_COUNT] = {
|
static IndicatorDescription gIndicatorDescriptions[INDICATOR_COUNT] = {
|
||||||
|
@ -356,6 +356,10 @@ int interfaceInit()
|
||||||
|
|
||||||
CustomInterfaceBarInit();
|
CustomInterfaceBarInit();
|
||||||
|
|
||||||
|
gInterfaceBarActionPointsBarRect = { 316 + ifaceOffset, 14, 406 + ifaceOffset, 19 };
|
||||||
|
gInterfaceBarEndButtonsRect = { 580 + ifaceOffset, 38, 637 + ifaceOffset, 96 };
|
||||||
|
gInterfaceBarMainActionRect = { 267 + ifaceOffset, 26, 455 + ifaceOffset, 93 };
|
||||||
|
|
||||||
gInterfaceBarInitialized = 1;
|
gInterfaceBarInitialized = 1;
|
||||||
|
|
||||||
int interfaceBarWindowX = (screenGetWidth() - gInterfaceBarWidth) / 2;
|
int interfaceBarWindowX = (screenGetWidth() - gInterfaceBarWidth) / 2;
|
||||||
|
|
Loading…
Reference in New Issue