aboutsummaryrefslogtreecommitdiff
path: root/demo-draw.c
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2014-11-19 00:44:53 +0100
committerPřemysl Janouch <p.janouch@gmail.com>2014-11-19 00:44:53 +0100
commitb8337b5b189b34e5ad0570dc37942650ba53e94b (patch)
treea1d80191000b450144bb8f1d869399431ec601b7 /demo-draw.c
parent2f8a39ed648b3533e0fe6b220821ae8ffcbdcbb4 (diff)
downloadtermo-b8337b5b189b34e5ad0570dc37942650ba53e94b.tar.gz
termo-b8337b5b189b34e5ad0570dc37942650ba53e94b.tar.xz
termo-b8337b5b189b34e5ad0570dc37942650ba53e94b.zip
demo-draw.c: app_data_t -> app_context_t
Diffstat (limited to 'demo-draw.c')
-rw-r--r--demo-draw.c10
1 files 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 <curses.h>
#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;