From fb7e2a650d61eb092867691a77d274aec3a1a2fc Mon Sep 17 00:00:00 2001 From: Pim van Pelt Date: Sun, 26 Nov 2017 17:32:29 +0100 Subject: [PATCH] Allow screen to be seen by other files (needed by widget_name.c) --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index ef58918..989721c 100644 --- a/src/main.c +++ b/src/main.c @@ -6,7 +6,7 @@ #include "stmpe610.h" #include "mongoose-touch.h" -static struct screen_t *screen = NULL; +struct screen_t *screen = NULL; static long map(long x, long in_min, long in_max, long out_min, long out_max) { return (x - in_min) * (out_max - out_min) / (in_max - in_min) + out_min;