summaryrefslogtreecommitdiff
path: root/app/wlib/gtklib/gtkdraw-cairo.c
diff options
context:
space:
mode:
Diffstat (limited to 'app/wlib/gtklib/gtkdraw-cairo.c')
-rw-r--r--app/wlib/gtklib/gtkdraw-cairo.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/wlib/gtklib/gtkdraw-cairo.c b/app/wlib/gtklib/gtkdraw-cairo.c
index 8672523..5042667 100644
--- a/app/wlib/gtklib/gtkdraw-cairo.c
+++ b/app/wlib/gtklib/gtkdraw-cairo.c
@@ -824,7 +824,7 @@ static cairo_t* gtkDrawDestroyCairoContext(cairo_t *cairo) {
void wDrawSetSize(
wDraw_p bd,
wPos_t w,
- wPos_t h )
+ wPos_t h , void * redraw)
{
wBool_t repaint;
if (bd == NULL) {
@@ -847,7 +847,8 @@ static cairo_t* gtkDrawDestroyCairoContext(cairo_t *cairo) {
bd->pixmap = gdk_pixmap_new( bd->widget->window, w, h, -1 );
wDrawClear( bd );
- bd->redraw( bd, bd->context, w, h );
+ if (!redraw)
+ bd->redraw( bd, bd->context, w, h );
}
/*wRedraw( bd )*/;
}