diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-03-06 15:24:08 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-03-06 15:24:21 +0000 |
commit | 2a0b6705724c4ea65b56eb0f45bccfa253d9fdc2 (patch) | |
tree | 068a8c40076b4337149a8914ee56a8ace4221133 /vcl | |
parent | 59619dbe971852d5cd35dcc3f78eda9bebeb99aa (diff) |
clip nwf rendering
Change-Id: Ib42304e9ceb6b49e2dd8ed92f2a86409921e9ef6
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx b/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx index 8e518d6e7294..f294b80786f6 100644 --- a/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx +++ b/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx @@ -910,6 +910,7 @@ bool GtkSalGraphics::drawNativeControl( ControlType nType, ControlPart nPart, co } cairo_t *cr = getCairoContext(); + clipRegion(cr); cairo_translate(cr, rControlRegion.Left(), rControlRegion.Top()); gtk_style_context_save(context); @@ -956,6 +957,7 @@ bool GtkSalGraphics::drawNativeControl( ControlType nType, ControlPart nPart, co break; } + cairo_surface_flush(cairo_get_target(cr)); cairo_destroy(cr); // unref mpFrame->damaged(basegfx::B2IBox(rControlRegion.Left(), rControlRegion.Top(), rControlRegion.Right(), rControlRegion.Bottom())); |