From: jpbruyere Date: Wed, 20 Jan 2016 07:41:36 +0000 (+0100) Subject: init textures to rgba(0,0,0,0) when created, window title bug X-Git-Url: https://git.osiis.dedyn.io/?a=commitdiff_plain;h=e530a408d849e1891117c20ba3d330e6b7a03e3a;p=jp%2Fcrow.git init textures to rgba(0,0,0,0) when created, window title bug --- diff --git a/Tests/Interfaces/test0.goml b/Tests/Interfaces/test0.goml index f0b78d14..d8ff1027 100755 --- a/Tests/Interfaces/test0.goml +++ b/Tests/Interfaces/test0.goml @@ -1,2 +1,4 @@  - + + + diff --git a/src/GraphicObjects/GraphicObject.cs b/src/GraphicObjects/GraphicObject.cs index e54f4b12..9d88cea1 100644 --- a/src/GraphicObjects/GraphicObject.cs +++ b/src/GraphicObjects/GraphicObject.cs @@ -764,6 +764,10 @@ namespace go #endif using (Context gr = new Context (draw)) { gr.Antialias = Antialias.Subpixel; + gr.Operator = Operator.Source; + gr.SetSourceRGBA(0,0,0,0); + gr.Paint(); + gr.Operator = Operator.Over; onDraw (gr); } draw.Flush (); @@ -787,10 +791,10 @@ namespace go #if CAIRO_GL using (Surface source = new GLSurface - (device, Content.ColorAlpha, texID, rb.Width, rb.Height)) { + (device, Content.ColorAlpha, texID, Slot.Width, Slot.Height)) { #else using (Surface source = - new ImageSurface(bmp, Format.Argb32, rb.Width, rb.Height, 4 * Slot.Width)) { + new ImageSurface(bmp, Format.Argb32, Slot.Width, Slot.Height, 4 * Slot.Width)) { #endif if (this.Background == Color.Clear) { ctx.Save (); @@ -801,6 +805,7 @@ namespace go } ctx.SetSourceSurface (source, rb.X, rb.Y); ctx.Paint (); + source.Flush(); } }