X-Git-Url: https://plomlompom.com/repos/index.html?a=blobdiff_plain;f=roguelike.c;h=f648e00cd769369adf21cb35aaaca107f1ca1596;hb=a2bafe4a71fbf31baa32b00581b2a744e96753af;hp=6ae524330e30f0482b0748c485ba992ccb0c394b;hpb=018565cc4592702368c948c579bcca3f35d5ca04;p=plomrogue
diff --git a/roguelike.c b/roguelike.c
index 6ae5243..f648e00 100644
--- a/roguelike.c
+++ b/roguelike.c
@@ -72,6 +72,13 @@ void toggle_window (struct WinMeta * win_meta, struct Win * win) {
else
append_window(win_meta, win); }
+void scroll_pad (struct WinMeta * win_meta, char dir) {
+// Try to scroll pad left or right.
+ if ('+' == dir)
+ reset_pad_offset(win_meta, win_meta->pad_offset + 1);
+ else if ('-' == dir)
+ reset_pad_offset(win_meta, win_meta->pad_offset - 1); }
+
void growshrink_active_window (struct WinMeta * win_meta, char change) {
// Grow or shrink active window horizontally or vertically by one cell size.
if (0 != win_meta->active) {