From 9adf288bb877f2ba28187649da86a43a30ed03a3 Mon Sep 17 00:00:00 2001 From: Kai-Martin Knaak Date: Sun, 27 Sep 2015 19:26:18 +0200 Subject: [PATCH] hid/gtk/gui.h: fix definition of LAYER_BUTTON_SILK LAYER_BUTTON_SILK should give the number of the layer after all copper layers. Since the copper layers are enumerated starting with zero, this is equal to the number of copper layers MAX_LAYER. The previous definition erreously added LAYER_BUTTON_SILK to this number. This only worked, because src/const.h sets this constant to zero. --- src/hid/gtk/gui.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hid/gtk/gui.h b/src/hid/gtk/gui.h index 1fff17b..4b36da9 100644 --- a/src/hid/gtk/gui.h +++ b/src/hid/gtk/gui.h @@ -44,7 +44,7 @@ | gui code in gui-top-window.c and group code in misc.c must agree | on what layer is what! */ -#define LAYER_BUTTON_SILK (MAX_LAYER + BOTTOM_SILK_LAYER) +#define LAYER_BUTTON_SILK (MAX_LAYER) #define LAYER_BUTTON_RATS (MAX_LAYER + 1) #define N_SELECTABLE_LAYER_BUTTONS (LAYER_BUTTON_RATS + 1) -- 2.5.0