diff options
Diffstat (limited to 'textscreen/examples/calculator.c')
-rw-r--r-- | textscreen/examples/calculator.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/textscreen/examples/calculator.c b/textscreen/examples/calculator.c index 968d3ef4..b8fefaa3 100644 --- a/textscreen/examples/calculator.c +++ b/textscreen/examples/calculator.c @@ -144,7 +144,12 @@ void BuildGUI() int main(int argc, char *argv[]) { - TXT_Init(); + if (!TXT_Init()) + { + fprintf(stderr, "Failed to initialise GUI\n"); + exit(-1); + } + TXT_SetDesktopTitle("Calculator demo"); BuildGUI(); |