git @ Cat's Eye Technologies linapple / fd149d8
Honor close application event even in DiskChoose state. ghedger authored 6 years ago T. Joseph Carter committed 3 years ago
1 changed file(s) with 12 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
387387 SDL_Event event; // event
388388 Uint8 *keyboard; // key state
389389
390 event.type = SDL_QUIT;
390 event.type = 0;
391391 while(event.type != SDL_KEYDOWN) { // wait for key pressed
392 SDL_Delay(10);
393 SDL_PollEvent(&event);
392 // GPH Honor quit even if we're in the diskchoose state.
393 if (SDL_QUIT == event.type) {
394 files.Delete();
395 sizes.Delete();
396 SDL_FreeSurface(my_screen);
397
398 SDL_PushEvent(&event);// push quit event
399 return false;
400 }
401 SDL_Delay(10);
402 SDL_PollEvent(&event);
394403 }
395404
396405 // control cursor