home
·
contact
·
privacy
projects
/
plomrogue
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Client: Fit interface_conf to new config file style. Also, refactorings.
[plomrogue]
/
src
/
client
/
draw_wins.c
diff --git
a/src/client/draw_wins.c
b/src/client/draw_wins.c
index e31dcc4c375f0395b63d97dd8a043dde58bb2bdf..b55b998bb403ba359ca373d2a12808ef7a922689 100644
(file)
--- a/
src/client/draw_wins.c
+++ b/
src/client/draw_wins.c
@@
-276,7
+276,7
@@
static void draw_keybinding_config(struct Win * win, struct KeyBindingDB * kbdb,
add_line(win, "(none)", 0, &offset, 0);
return;
}
add_line(win, "(none)", 0, &offset, 0);
return;
}
- uint
16
_t kb_n;
+ uint
8
_t kb_n;
for (kb_n = 0; kb_n < kbdb->n_of_kbs; kb_n++)
{
attr_t attri = 0;
for (kb_n = 0; kb_n < kbdb->n_of_kbs; kb_n++)
{
attr_t attri = 0;
@@
-302,7
+302,7
@@
static void draw_titled_keybinding_list(char * title, struct Win * win,
struct KeyBindingDB * kbdb)
{
uint8_t state = 0;
struct KeyBindingDB * kbdb)
{
uint8_t state = 0;
- uint
16
_t kb_n = 0;
+ uint
8
_t kb_n = 0;
while (0 == state || kb_n < kbdb->n_of_kbs)
{
if (0 == state)
while (0 == state || kb_n < kbdb->n_of_kbs)
{
if (0 == state)
@@
-397,7
+397,7
@@
extern void draw_win_inventory(struct Win * win)
extern void draw_win_available_keybindings(struct Win * win)
{
extern void draw_win_available_keybindings(struct Win * win)
{
- char * title = "Active window's key
binding
s:";
+ char * title = "Active window's keys:";
struct KeyBindingDB * kbdb;
struct Win * win_active = get_win_by_id(world.winDB.active);
if (0 == win_active->view)
struct KeyBindingDB * kbdb;
struct Win * win_active = get_win_by_id(world.winDB.active);
if (0 == win_active->view)
@@
-415,7
+415,7
@@
extern void draw_win_available_keybindings(struct Win * win)
uint16_t offset = 0;
draw_titled_keybinding_list(title, win, &offset, 0, kbdb);
add_line(win, " ", 0, &offset, 0);
uint16_t offset = 0;
draw_titled_keybinding_list(title, win, &offset, 0, kbdb);
add_line(win, " ", 0, &offset, 0);
- title = "Global key
binding
s:";
+ title = "Global keys:";
draw_titled_keybinding_list(title, win, &offset, 1, &world.kb_global);
}
draw_titled_keybinding_list(title, win, &offset, 1, &world.kb_global);
}
@@
-448,7
+448,7
@@
extern void draw_win_keybindings_winconf_keybindings(struct Win * win)
extern void draw_winconf_keybindings(struct Win * win)
{
extern void draw_winconf_keybindings(struct Win * win)
{
- char * title = "Window's key
binding
s:";
+ char * title = "Window's keys:";
uint16_t offset = 0;
add_line(win, title, 0, &offset, 0);
add_line(win, " ", 0, &offset, 0);
uint16_t offset = 0;
add_line(win, title, 0, &offset, 0);
add_line(win, " ", 0, &offset, 0);