diff options
author | Andrey Nazarov <skuller@skuller.net> | 2011-02-09 19:10:58 +0300 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2011-02-09 19:10:58 +0300 |
commit | 608c45df70fcd94e431c93bf04a0bac9e76bbf49 (patch) | |
tree | d7b5a042d9e79616a544e8cf81698c7033757c0a /src/ui_local.h | |
parent | 0ea2bb843c9d5af80a9cec62adfbcc3d42aefb9e (diff) |
Use CHAR_WIDTH/HEIGHT constants everywhere.
Diffstat (limited to 'src/ui_local.h')
-rw-r--r-- | src/ui_local.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ui_local.h b/src/ui_local.h index be3814d..6e4acea 100644 --- a/src/ui_local.h +++ b/src/ui_local.h @@ -67,10 +67,10 @@ typedef enum { QMS_BEEP } menuSound_t; -#define RCOLUMN_OFFSET 16 -#define LCOLUMN_OFFSET -16 +#define RCOLUMN_OFFSET (CHAR_WIDTH*2) +#define LCOLUMN_OFFSET -RCOLUMN_OFFSET -#define MENU_SPACING 12 +#define MENU_SPACING (CHAR_HEIGHT+CHAR_HEIGHT/2) #define DOUBLE_CLICK_DELAY 300 @@ -147,9 +147,9 @@ typedef struct menuSlider_s { #define MAX_COLUMNS 8 -#define MLIST_SPACING 10 +#define MLIST_SPACING (CHAR_HEIGHT+CHAR_HEIGHT/4) #define MLIST_BORDER_WIDTH 1 -#define MLIST_SCROLLBAR_WIDTH 10 +#define MLIST_SCROLLBAR_WIDTH (CHAR_WIDTH+CHAR_WIDTH/4) #define MLIST_PRESTEP 3 typedef enum { |