home
·
contact
·
privacy
projects
/
plomrogue
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Overhauled large parts of window system to universalize scroll hints.
[plomrogue]
/
src
/
wincontrol.c
diff --git
a/src/wincontrol.c
b/src/wincontrol.c
index 3d0307817397343b8a42fb008e4a9da29b98466e..d444623ec79cae2e86273201c044d8e9aeb90972 100644
(file)
--- a/
src/wincontrol.c
+++ b/
src/wincontrol.c
@@
-504,13
+504,13
@@
extern void save_win_configs(struct World * world)
extern uint8_t toggle_window(struct WinMeta * win_meta, struct Win * win)
{
extern uint8_t toggle_window(struct WinMeta * win_meta, struct Win * win)
{
- if (0
!= win->frame.curses_win)
+ if (0
== win->prev && win_meta->chain_start != win) /* Win outside chain. */
{
{
- return
sus
pend_win(win_meta, win);
+ return
ap
pend_win(win_meta, win);
}
else
{
}
else
{
- return
ap
pend_win(win_meta, win);
+ return
sus
pend_win(win_meta, win);
}
}
}
}
@@
-523,15
+523,20
@@
extern void toggle_winconfig(struct World * world, struct Win * win)
{
win->draw = draw_winconf_geometry;
wcp->view = 1;
{
win->draw = draw_winconf_geometry;
wcp->view = 1;
+ wcp->center = win->center;
+ win->center.y = 0;
+ win->center.x = 0;
}
else if (1 == wcp->view)
{
win->draw = draw_winconf_keybindings;
wcp->view = 2;
}
else if (1 == wcp->view)
{
win->draw = draw_winconf_keybindings;
wcp->view = 2;
+ win->center.x = 0;
}
else
{
win->draw = get_drawfunc_by_char(wcp->draw);
}
else
{
win->draw = get_drawfunc_by_char(wcp->draw);
+ win->center = wcp->center;
wcp->view = 0;
}
}
wcp->view = 0;
}
}