summaryrefslogtreecommitdiff
path: root/textscreen/examples/guitest.c
diff options
context:
space:
mode:
Diffstat (limited to 'textscreen/examples/guitest.c')
-rw-r--r--textscreen/examples/guitest.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/textscreen/examples/guitest.c b/textscreen/examples/guitest.c
index e385ca84..94483236 100644
--- a/textscreen/examples/guitest.c
+++ b/textscreen/examples/guitest.c
@@ -159,7 +159,11 @@ void Window2(void)
int main(int argc, char *argv[])
{
- TXT_Init();
+ if (!TXT_Init())
+ {
+ fprintf(stderr, "Failed to initialise GUI\n");
+ exit(-1);
+ }
TXT_SetDesktopTitle("Not Chocolate Doom Setup");