Made Call_Escape more accurate
The ASM indicates it's a `while (1)`, and there's no break.
This commit is contained in:
parent
abf51970df
commit
76ac477108
1 changed files with 8 additions and 3 deletions
|
@ -10,7 +10,7 @@ int Call_Escape()
|
||||||
{
|
{
|
||||||
RECT rc = {0, 128, 208, 144};
|
RECT rc = {0, 128, 208, 144};
|
||||||
|
|
||||||
while (Flip_SystemTask())
|
while (1)
|
||||||
{
|
{
|
||||||
//Get pressed keys
|
//Get pressed keys
|
||||||
GetTrg();
|
GetTrg();
|
||||||
|
@ -35,9 +35,14 @@ int Call_Escape()
|
||||||
CortBox(&grcFull, 0x000000);
|
CortBox(&grcFull, 0x000000);
|
||||||
PutBitmap3(&grcFull, (WINDOW_WIDTH - 208) / 2, (WINDOW_HEIGHT - 16) / 2, &rc, 26);
|
PutBitmap3(&grcFull, (WINDOW_WIDTH - 208) / 2, (WINDOW_HEIGHT - 16) / 2, &rc, 26);
|
||||||
PutFramePerSecound();
|
PutFramePerSecound();
|
||||||
}
|
|
||||||
|
|
||||||
|
if (!Flip_SystemTask())
|
||||||
|
{
|
||||||
//Quit if window is closed
|
//Quit if window is closed
|
||||||
gKeyTrg = 0;
|
gKeyTrg = 0;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue