mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-24 23:39:51 +03:00
only call os redraw on the area of the widget which has been updated
svn path=/trunk/netsurf/; revision=7028
This commit is contained in:
parent
d6f5ae2ef0
commit
1188fd3179
@ -311,7 +311,6 @@ fbtk_redraw_widget(fbtk_widget_t *widget)
|
||||
|
||||
widget->redraw_required = false;
|
||||
//LOG(("OS redrawing %d,%d %d,%d", fb_plot_ctx.x0, fb_plot_ctx.y0, fb_plot_ctx.x1, fb_plot_ctx.y1));
|
||||
fb_os_redraw(&fb_plot_ctx);
|
||||
}
|
||||
|
||||
/* restore clipping rectangle */
|
||||
@ -331,6 +330,8 @@ fb_redraw_fill(fbtk_widget_t *widget, void *pw)
|
||||
fb_plot_ctx.x1, fb_plot_ctx.y1,
|
||||
widget->bg);
|
||||
}
|
||||
|
||||
fb_os_redraw(&fb_plot_ctx);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -367,6 +368,8 @@ fb_redraw_hscroll(fbtk_widget_t *widget, void *pw)
|
||||
fb_plot_ctx.y0 + widget->height - 5,
|
||||
widget->bg);
|
||||
|
||||
fb_os_redraw(&fb_plot_ctx);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -403,6 +406,8 @@ fb_redraw_vscroll(fbtk_widget_t *widget, void *pw)
|
||||
fb_plot_ctx.y0 + vscroll + vpos - 5,
|
||||
widget->bg);
|
||||
|
||||
fb_os_redraw(&fb_plot_ctx);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -421,6 +426,9 @@ fb_redraw_bitmap(fbtk_widget_t *widget, void *pw)
|
||||
plot.bitmap(fb_plot_ctx.x0, fb_plot_ctx.y0,
|
||||
widget->width, widget->height,
|
||||
widget->u.bitmap.bitmap, 0, NULL);
|
||||
|
||||
fb_os_redraw(&fb_plot_ctx);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -545,6 +553,9 @@ fb_redraw_text(fbtk_widget_t *widget, void *pw)
|
||||
widget->bg,
|
||||
widget->fg);
|
||||
}
|
||||
|
||||
fb_os_redraw(&fb_plot_ctx);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user