From 82fd9e5ad189dcba263b441cc2b980aa5c315ac3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Hru=C5=A1ka?= Date: Sun, 17 Sep 2017 19:10:16 +0200 Subject: [PATCH] raise utf8 cache to max of 160 characters, re-enable buttons by default --- user/screen.h | 6 +++--- user/utf8.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/user/screen.h b/user/screen.h index 30a1833..c970927 100644 --- a/user/screen.h +++ b/user/screen.h @@ -65,11 +65,11 @@ enum CursorShape { CURSOR_BAR = 6, }; -#define SCR_DEF_SHOW_BUTTONS 0 +#define SCR_DEF_SHOW_BUTTONS 1 #define SCR_DEF_SHOW_MENU 1 #define SCR_DEF_CURSOR_SHAPE CURSOR_BLOCK_BL -#define SCR_DEF_CRLF 0 -#define SCR_DEF_ALLFN 0 +#define SCR_DEF_CRLF 0 // enter sends CRLF +#define SCR_DEF_ALLFN 0 // capture F5 etc // --- Persistent Settings --- #define CURSOR_BLINKS(shape) ((shape)==CURSOR_BLOCK_BL||(shape)==CURSOR_UNDERLINE_BL||(shape)==CURSOR_BAR_BL) diff --git a/user/utf8.h b/user/utf8.h index d0c0e57..81f9372 100644 --- a/user/utf8.h +++ b/user/utf8.h @@ -8,7 +8,7 @@ #include // 160 is maximum possible -#define UNICODE_CACHE_SIZE 100 +#define UNICODE_CACHE_SIZE 160 typedef u8 UnicodeCacheRef; #define IS_UNICODE_CACHE_REF(c) ((c) < 32 || (c) >= 127)