diff options
Diffstat (limited to 'apps/gui')
-rw-r--r-- | apps/gui/viewport.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/gui/viewport.h b/apps/gui/viewport.h index 76ed327f69..acc9758ee3 100644 --- a/apps/gui/viewport.h +++ b/apps/gui/viewport.h | |||
@@ -22,6 +22,7 @@ | |||
22 | 22 | ||
23 | #include "config.h" | 23 | #include "config.h" |
24 | #include "lcd.h" | 24 | #include "lcd.h" |
25 | #include "system.h" | ||
25 | #include "screen_access.h" | 26 | #include "screen_access.h" |
26 | 27 | ||
27 | /* return the number of text lines in the vp viewport */ | 28 | /* return the number of text lines in the vp viewport */ |
@@ -58,8 +59,8 @@ void viewport_set_defaults(struct viewport *vp, enum screen_type screen); | |||
58 | * SB "displaying rules". | 59 | * SB "displaying rules". |
59 | */ | 60 | */ |
60 | #define VP_SB_HIDE_ALL 0 | 61 | #define VP_SB_HIDE_ALL 0 |
61 | #define VP_SB_ONSCREEN(screen) (1u<<screen) | 62 | #define VP_SB_ONSCREEN(screen) BIT_N(screen) |
62 | #define VP_SB_IGNORE_SETTING(screen) (1u<<(4+screen)) | 63 | #define VP_SB_IGNORE_SETTING(screen) BIT_N(4+screen) |
63 | #define VP_SB_ALLSCREENS (VP_SB_ONSCREEN(0)|VP_SB_ONSCREEN(1)) | 64 | #define VP_SB_ALLSCREENS (VP_SB_ONSCREEN(0)|VP_SB_ONSCREEN(1)) |
64 | int viewportmanager_set_statusbar(int enabled); | 65 | int viewportmanager_set_statusbar(int enabled); |
65 | 66 | ||