Speed up scrollwheel scrolling due to complaints :)

Restrict screen mode requester to 24 and 32-bit modes only, as the alpha blitting
doesn't work in 16-bit modes (may not work in 24-bit either, but I'm not sure and
Classic OS4 users are likely to have 24-bit cards so don't really want to restrict it
further)

svn path=/trunk/netsurf/; revision=7316
This commit is contained in:
Chris Young 2009-04-25 21:51:40 +00:00
parent b8dde8e473
commit 00e37846b2

View File

@ -471,7 +471,7 @@ void gui_init2(int argc, char** argv)
if(screenmodereq = AllocAslRequest(ASL_ScreenModeRequest,NULL))
{
AslRequestTags(screenmodereq,
ASLSM_MinDepth,16,
ASLSM_MinDepth,24,
ASLSM_MaxDepth,32,
TAG_DONE);
@ -2818,8 +2818,8 @@ void ami_scroller_hook(struct Hook *hook,Object *object,struct IntuiMessage *msg
wheel = (struct IntuiWheelData *)msg->IAddress;
gui_window_set_scroll(gwin->bw->window,
gwin->bw->window->scrollx + (wheel->WheelX * 10),
gwin->bw->window->scrolly + (wheel->WheelY * 10));
gwin->bw->window->scrollx + (wheel->WheelX * 20),
gwin->bw->window->scrolly + (wheel->WheelY * 20));
}
break;
}