1
0
mirror of https://github.com/cc65/cc65.git synced 2024-11-15 11:05:56 +00:00

Make use of doesclrscrafterexit().

This commit is contained in:
Oliver Schmidt 2016-10-15 15:45:17 +02:00
parent 23cfb51e72
commit dfbd96f09e

View File

@ -12,6 +12,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <time.h> #include <time.h>
#include <conio.h> #include <conio.h>
#include <cc65.h>
@ -292,12 +293,11 @@ int main (void)
gotoxy (0, 1); cprintf ("frames: %lu", f); gotoxy (0, 1); cprintf ("frames: %lu", f);
gotoxy (0, 2); cprintf ("fps : %lu.%u", fps, fps10); gotoxy (0, 2); cprintf ("fps : %lu.%u", fps, fps10);
/* Wait for a key, then end */ if (doesclrscrafterexit ()) {
cputsxy (0, 4, "Press any key when done..."); cputsxy (0, 4, "Press any key when done...");
(void) cgetc (); (void) cgetc ();
}
/* Done */ /* Done */
return EXIT_SUCCESS; return EXIT_SUCCESS;
} }