From c16e74036e791b2c1f9c19841fc75a60067aefec Mon Sep 17 00:00:00 2001 From: KatolaZ Date: Thu, 8 Aug 2019 08:39:04 +0100 Subject: fix bug with global movements in arrow mode --- gramscii.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'gramscii.h') diff --git a/gramscii.h b/gramscii.h index 83d2719..2c09484 100644 --- a/gramscii.h +++ b/gramscii.h @@ -82,9 +82,7 @@ typedef struct{ #define progr_x(d) ((d) == DIR_L ? -1 : (d) == DIR_R ? 1 : 0) #define progr_y(d) ((d) == DIR_U ? -1 : (d) == DIR_D ? 1 : 0) -/* - * #define DEBUG 1 - */ +#define DEBUG 1 /** global variables **/ @@ -140,7 +138,7 @@ struct termios t1, t2, t3; /** screen-related functions **/ void reset_styles(); void redraw(); -int move_around(char c, FILE *fc); +int move_around(char c, FILE *fc, char global); void check_bound(int *x, int *y); void status_bar(); void show_cursor(); -- cgit v1.2.3