static void gui_window_set_scroll(struct gui_window *w, int sx, int sy) { if ( (w == NULL) || (w->browser->bw == NULL) || (!browser_window_has_content(w->browser->bw))) return; LOG("scroll (gui_window: %p) %d, %d\n", w, sx, sy); window_scroll_by(w->root, sx, sy); return; }
void gui_window_set_scroll(struct gui_window *w, int sx, int sy) { int units = 0; if ((w == NULL) || (w->browser->bw == NULL) || (w->browser->bw->current_content == NULL)) return; LOG(("scroll (gui_window: %p) %d, %d\n", w, sx, sy)); window_scroll_by(w->root, sx, sy); return; }