summaryrefslogtreecommitdiff
path: root/misc_gui.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc_gui.c')
-rw-r--r--misc_gui.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/misc_gui.c b/misc_gui.c
index a5e7db7a0..1b17cc449 100644
--- a/misc_gui.c
+++ b/misc_gui.c
@@ -692,6 +692,14 @@ void SetVScrollCount(Window *w, int num)
if (num < w->vscroll.pos) w->vscroll.pos = num;
}
+void SetVScroll2Count(Window *w, int num)
+{
+ w->vscroll2.count = num;
+ num -= w->vscroll2.cap;
+ if (num < 0) num = 0;
+ if (num < w->vscroll2.pos) w->vscroll2.pos = num;
+}
+
void SetHScrollCount(Window *w, int num)
{
w->hscroll.count = num;
@@ -700,7 +708,6 @@ void SetHScrollCount(Window *w, int num)
if (num < w->hscroll.pos) w->hscroll.pos = num;
}
-
int HandleEditBoxKey(Window *w, int wid, WindowEvent *we)
{
byte *p;