mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-02-10 19:44:43 +03:00
Fix comments.
svn path=/trunk/netsurf/; revision=13298
This commit is contained in:
parent
7fb38a3e79
commit
648fdafe82
@ -3002,7 +3002,7 @@ void ro_gui_window_scroll(wimp_scroll *scroll)
|
||||
|
||||
/**
|
||||
* Scroll a browser window, either via the core or directly using the
|
||||
* normal Wimp scoll interface.
|
||||
* normal Wimp_OpenWindow interface.
|
||||
*
|
||||
* Scroll steps are supplied in terms of the (extended) Scroll Event direction
|
||||
* values returned by Wimp_Poll. Special values of 0x7fffffff and 0x80000000
|
||||
@ -3029,6 +3029,8 @@ void ro_gui_window_scroll_action(struct gui_window *g,
|
||||
if (g == NULL)
|
||||
return;
|
||||
|
||||
/* Get the current window, toolbar and pointer details. */
|
||||
|
||||
state.w = g->window;
|
||||
error = xwimp_get_window_state(&state);
|
||||
if (error) {
|
||||
@ -3053,6 +3055,10 @@ void ro_gui_window_scroll_action(struct gui_window *g,
|
||||
return;
|
||||
}
|
||||
|
||||
/* Turn the scroll requirement from Scroll Event codes into coordinates
|
||||
* that the core can understand.
|
||||
*/
|
||||
|
||||
switch (scroll_x) {
|
||||
case wimp_SCROLL_PAGE_LEFT:
|
||||
step_x = SCROLL_PAGE_DOWN;
|
||||
|
Loading…
x
Reference in New Issue
Block a user