Kaydet (Commit) 2a0b6705 authored tarafından Caolán McNamara's avatar Caolán McNamara

clip nwf rendering

Change-Id: Ib42304e9ceb6b49e2dd8ed92f2a86409921e9ef6
üst 59619dbe
...@@ -910,6 +910,7 @@ bool GtkSalGraphics::drawNativeControl( ControlType nType, ControlPart nPart, co ...@@ -910,6 +910,7 @@ bool GtkSalGraphics::drawNativeControl( ControlType nType, ControlPart nPart, co
} }
cairo_t *cr = getCairoContext(); cairo_t *cr = getCairoContext();
clipRegion(cr);
cairo_translate(cr, rControlRegion.Left(), rControlRegion.Top()); cairo_translate(cr, rControlRegion.Left(), rControlRegion.Top());
gtk_style_context_save(context); gtk_style_context_save(context);
...@@ -956,6 +957,7 @@ bool GtkSalGraphics::drawNativeControl( ControlType nType, ControlPart nPart, co ...@@ -956,6 +957,7 @@ bool GtkSalGraphics::drawNativeControl( ControlType nType, ControlPart nPart, co
break; break;
} }
cairo_surface_flush(cairo_get_target(cr));
cairo_destroy(cr); // unref cairo_destroy(cr); // unref
mpFrame->damaged(basegfx::B2IBox(rControlRegion.Left(), rControlRegion.Top(), rControlRegion.Right(), rControlRegion.Bottom())); mpFrame->damaged(basegfx::B2IBox(rControlRegion.Left(), rControlRegion.Top(), rControlRegion.Right(), rControlRegion.Bottom()));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment