1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-11 20:29:36 +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 <time.h>
#include <conio.h>
#include <cc65.h>
@ -292,12 +293,11 @@ int main (void)
gotoxy (0, 1); cprintf ("frames: %lu", f);
gotoxy (0, 2); cprintf ("fps : %lu.%u", fps, fps10);
/* Wait for a key, then end */
cputsxy (0, 4, "Press any key when done...");
(void) cgetc ();
if (doesclrscrafterexit ()) {
cputsxy (0, 4, "Press any key when done...");
(void) cgetc ();
}
/* Done */
return EXIT_SUCCESS;
}