diff options
author | Max Kellermann <max@duempel.org> | 2008-11-27 18:05:28 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-11-27 18:05:28 +0100 |
commit | b512802eb2babc879a109d16ce4a32b2fb1c22ef (patch) | |
tree | a2e28c2541ebb03e0254ab0d2f18c6cf35286f7b /src/list_window.h | |
parent | 45352152fbdcac20b39161069406ad6d5288bd98 (diff) | |
download | mpd-b512802eb2babc879a109d16ce4a32b2fb1c22ef.tar.gz mpd-b512802eb2babc879a109d16ce4a32b2fb1c22ef.tar.xz mpd-b512802eb2babc879a109d16ce4a32b2fb1c22ef.zip |
list_window: converted "flags" to one "bool" variable
Currently, there is only one known list_window flag ("hide_cursor").
Replace the "flags" bit field with a boolean variable. If we run out
of space some day, we can convert that to bool:1.
Diffstat (limited to 'src/list_window.h')
-rw-r--r-- | src/list_window.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/list_window.h b/src/list_window.h index bcf3e3228..8e9411acb 100644 --- a/src/list_window.h +++ b/src/list_window.h @@ -13,8 +13,6 @@ #include <ncurses.h> #endif -#define LW_HIDE_CURSOR 0x01 - typedef const char *(*list_window_callback_fn_t)(unsigned index, bool *highlight, void *data); @@ -26,7 +24,8 @@ typedef struct list_window { unsigned start; unsigned selected; unsigned xoffset; - int flags; + + bool hide_cursor; } list_window_t; |