diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2011-09-25 10:08:23 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2011-09-25 10:08:23 +0000 |
commit | 4573560c6179d922337054451b15369f51c25359 (patch) | |
tree | ba497bcac150e5a2dd63e30015278379b0028e57 | |
parent | 3be63e2f695184c11fad26f665ff67653690384a (diff) | |
download | netsurf-4573560c6179d922337054451b15369f51c25359.tar.gz netsurf-4573560c6179d922337054451b15369f51c25359.tar.bz2 |
increase keyboard scroll speed to 10px
svn path=/trunk/netsurf/; revision=12875
-rwxr-xr-x | amiga/gui.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/amiga/gui.c b/amiga/gui.c index 4e4cbf133..b56b2eb06 100755 --- a/amiga/gui.c +++ b/amiga/gui.c @@ -127,6 +127,8 @@ #include <math.h> #include <string.h> +#define NSA_KBD_SCROLL_PX 10 + /* Extra mouse button defines to match those in intuition/intuition.h */ #define SIDEDOWN (IECODE_4TH_BUTTON) #define SIDEUP (IECODE_4TH_BUTTON | IECODE_UP_PREFIX) @@ -1497,24 +1499,24 @@ void ami_handle_msg(void) case KEY_UP: gui_window_set_scroll(gwin->bw->window, gwin->bw->window->scrollx, - gwin->bw->window->scrolly - 5); + gwin->bw->window->scrolly - NSA_KBD_SCROLL_PX); break; case KEY_DOWN: gui_window_set_scroll(gwin->bw->window, gwin->bw->window->scrollx, - gwin->bw->window->scrolly + 5); + gwin->bw->window->scrolly + NSA_KBD_SCROLL_PX); break; case KEY_LEFT: gui_window_set_scroll(gwin->bw->window, - gwin->bw->window->scrollx - 5, + gwin->bw->window->scrollx - NSA_KBD_SCROLL_PX, gwin->bw->window->scrolly); break; case KEY_RIGHT: gui_window_set_scroll(gwin->bw->window, - gwin->bw->window->scrollx + 5, + gwin->bw->window->scrollx + NSA_KBD_SCROLL_PX, gwin->bw->window->scrolly); break; |