#endif\r
using (Context gr = new Context (draw)) {\r
gr.Antialias = Antialias.Subpixel;\r
+ gr.Operator = Operator.Source;\r
+ gr.SetSourceRGBA(0,0,0,0);\r
+ gr.Paint();\r
+ gr.Operator = Operator.Over;\r
onDraw (gr);\r
}\r
draw.Flush ();\r
\r
#if CAIRO_GL\r
using (Surface source = new GLSurface\r
- (device, Content.ColorAlpha, texID, rb.Width, rb.Height)) {\r
+ (device, Content.ColorAlpha, texID, Slot.Width, Slot.Height)) {\r
#else\r
using (Surface source =\r
- new ImageSurface(bmp, Format.Argb32, rb.Width, rb.Height, 4 * Slot.Width)) {\r
+ new ImageSurface(bmp, Format.Argb32, Slot.Width, Slot.Height, 4 * Slot.Width)) {\r
#endif\r
if (this.Background == Color.Clear) {\r
ctx.Save ();\r
}\r
ctx.SetSourceSurface (source, rb.X, rb.Y);\r
ctx.Paint ();\r
+ source.Flush();\r
}\r
}\r
\r