Fix build due to renamed variable.
quited -> is_quit
This commit is contained in:
@@ -64,7 +64,7 @@ extern "C" {
|
||||
/* Global variables residing in the platform module. */
|
||||
extern int dopause, /* system is paused */
|
||||
doresize, /* screen resize requested */
|
||||
quited, /* system exit requested */
|
||||
is_quit, /* system exit requested */
|
||||
mouse_capture; /* mouse is captured in app */
|
||||
|
||||
#ifdef MTR_ENABLED
|
||||
|
@@ -431,7 +431,7 @@ main_thread(void *param)
|
||||
title_update = 1;
|
||||
old_time = GetTickCount();
|
||||
drawits = frames = 0;
|
||||
while (!quited) {
|
||||
while (!is_quit) {
|
||||
/* See if it is time to run a frame of code. */
|
||||
new_time = GetTickCount();
|
||||
drawits += (new_time - old_time);
|
||||
@@ -474,7 +474,7 @@ do_start(void)
|
||||
LARGE_INTEGER qpc;
|
||||
|
||||
/* We have not stopped yet. */
|
||||
quited = 0;
|
||||
is_quit = 0;
|
||||
|
||||
/* Initialize the high-precision timer. */
|
||||
timeBeginPeriod(1);
|
||||
@@ -483,7 +483,7 @@ do_start(void)
|
||||
win_log("Main timer precision: %llu\n", timer_freq);
|
||||
|
||||
/* Start the emulator, really. */
|
||||
thMain = thread_create(main_thread, &quited);
|
||||
thMain = thread_create(main_thread, &is_quit);
|
||||
SetThreadPriority(thMain, THREAD_PRIORITY_HIGHEST);
|
||||
}
|
||||
|
||||
@@ -492,7 +492,7 @@ do_start(void)
|
||||
void
|
||||
do_stop(void)
|
||||
{
|
||||
quited = 1;
|
||||
is_quit = 1;
|
||||
|
||||
plat_delay_ms(100);
|
||||
|
||||
|
@@ -1332,16 +1332,16 @@ ui_init(int nCmdShow)
|
||||
do_start();
|
||||
|
||||
/* Run the message loop. It will run until GetMessage() returns 0 */
|
||||
while (! quited) {
|
||||
while (! is_quit) {
|
||||
bRet = GetMessage(&messages, NULL, 0, 0);
|
||||
if ((bRet == 0) || quited) break;
|
||||
if ((bRet == 0) || is_quit) break;
|
||||
|
||||
if (bRet == -1) {
|
||||
fatal("bRet is -1\n");
|
||||
}
|
||||
|
||||
if (messages.message == WM_QUIT) {
|
||||
quited = 1;
|
||||
is_quit = 1;
|
||||
break;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user