Make use of doesclrscrafterexit().
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user