From b8337b5b189b34e5ad0570dc37942650ba53e94b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?P=C5=99emysl=20Janouch?=
Date: Wed, 19 Nov 2014 00:44:53 +0100
Subject: [PATCH] demo-draw.c: app_data_t -> app_context_t
---
demo-draw.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/demo-draw.c b/demo-draw.c
index 85d81fc..10cbe3b 100644
--- a/demo-draw.c
+++ b/demo-draw.c
@@ -14,8 +14,8 @@
#include
#include "termo.h"
-typedef struct app_data app_data_t;
-struct app_data
+typedef struct app_context app_context_t;
+struct app_context
{
termo_t *tk;
@@ -44,7 +44,7 @@ display (const char *format, ...)
}
static void
-init_palette (app_data_t *app)
+init_palette (app_context_t *app)
{
start_color ();
@@ -87,7 +87,7 @@ redraw (void)
}
static bool
-on_key (app_data_t *app, termo_key_t *key)
+on_key (app_context_t *app, termo_key_t *key)
{
if (key->type == TERMO_TYPE_KEYSYM
&& key->code.sym == TERMO_SYM_ESCAPE)
@@ -175,7 +175,7 @@ main (int argc, char *argv[])
exit (EXIT_FAILURE);
}
- app_data_t app;
+ app_context_t app;
memset (&app, 0, sizeof app);
app.tk = tk;