|
|
|
|
@ -253,6 +253,8 @@ int msdl_eventloop () {
|
|
|
|
|
|
|
|
|
|
int main (int argc, char **argv) {
|
|
|
|
|
SDL_Surface *scr;
|
|
|
|
|
static time_t to;
|
|
|
|
|
time_t t1;
|
|
|
|
|
|
|
|
|
|
/* Initialize SDL for video output */
|
|
|
|
|
if (SDL_Init (SDL_INIT_VIDEO | SDL_INIT_TIMER) < 0) {
|
|
|
|
|
@ -275,6 +277,13 @@ int main (int argc, char **argv) {
|
|
|
|
|
|
|
|
|
|
while (app.status != APPSTATUS_quit) {
|
|
|
|
|
while (msdl_eventloop ());
|
|
|
|
|
|
|
|
|
|
t1 = time (NULL);
|
|
|
|
|
if (to != t1) {
|
|
|
|
|
app_loop ();
|
|
|
|
|
to = t1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
draw ();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -286,7 +295,7 @@ int main (int argc, char **argv) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void main_wnd_update () {
|
|
|
|
|
// d_printf ("main_wnd_update");
|
|
|
|
|
d_printf ("main_wnd_update");
|
|
|
|
|
while (msdl_eventloop ());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|