aboutsummaryrefslogtreecommitdiff
path: root/src/uicmd.cc
diff options
context:
space:
mode:
authorjcid <devnull@localhost>2007-11-02 22:47:36 +0100
committerjcid <devnull@localhost>2007-11-02 22:47:36 +0100
commit82433031dd79fb3332f41d6873ebd03b762d8502 (patch)
treefc4ec4a77cd776aad1a86be043fd816ba440c73a /src/uicmd.cc
parenta98cd575bbb83fcf726c99741b8d97546696a16e (diff)
Hooked vertical scrolling to the mouse wheel.
Diffstat (limited to 'src/uicmd.cc')
-rw-r--r--src/uicmd.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/uicmd.cc b/src/uicmd.cc
index 02a51010..b2d58a4d 100644
--- a/src/uicmd.cc
+++ b/src/uicmd.cc
@@ -14,6 +14,7 @@
#include <stdio.h>
#include <stdarg.h>
+#include <math.h> /* for rint */
#include <fltk/Widget.h>
#include "dir.h"
@@ -82,6 +83,7 @@ BrowserWindow *a_UIcmd_browser_window_new(int ww, int wh)
FltkViewport *viewport = new FltkViewport (0, p_h, ww, wh-p_h-s_h);
layout->attachView (viewport);
//viewport->addGadget(new_ui->fullscreen_button());
+ viewport->setScrollStep((int) rint(12.0 * prefs.font_factor));
new_ui->set_render_layout_end();
// This was the original code.
// Set the render_layout widget into the UI