X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=samples%2Fmultidemo.c;h=396d7344a1b6dfacd9348e3052a5b6314006aeb4;hb=dfb7c0f24d7df8b6de735d730ba0465fc5d7c775;hp=74039cfd6583c773274274335111d90835c7f40b;hpb=a8d3b83c43e79702a41b0049d65ea51e62dacf09;p=cc65 diff --git a/samples/multidemo.c b/samples/multidemo.c index 74039cfd6..396d7344a 100644 --- a/samples/multidemo.c +++ b/samples/multidemo.c @@ -11,15 +11,16 @@ #include -#include #include #include #include #include +#include #ifndef __CBM__ #include #include #else +#include #include #endif @@ -229,7 +230,7 @@ void main (void) } log ("Press any key..."); - cgetc (); + getchar (); if (loadoverlay (1)) { log ("Calling overlay 1 from main"); @@ -254,6 +255,8 @@ void main (void) foobar (); } - log ("Press any key..."); - cgetc (); + if (doesclrscrafterexit ()) { + log ("Press any key..."); + getchar (); + } }