static void gui_window_update_extent(struct gui_window *gw) { int w, h; browser_window_get_extents(gw->bw, true, &w, &h); fbtk_set_scroll_parameters(gw->hscroll, 0, w, fbtk_get_width(gw->browser), 100); fbtk_set_scroll_parameters(gw->vscroll, 0, h, fbtk_get_height(gw->browser), 100); }
void gui_window_update_extent(struct gui_window *gw) { float scale = gw->bw->scale; fbtk_set_scroll_parameters(gw->hscroll, 0, content_get_width(gw->bw->current_content) * scale, fbtk_get_width(gw->browser), 100); fbtk_set_scroll_parameters(gw->vscroll, 0, content_get_height(gw->bw->current_content) * scale, fbtk_get_height(gw->browser), 100); }