[Mono-bugs] [Bug 80954][Wis] New - Problem drawing into a context

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sun Feb 25 04:29:46 EST 2007

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by pupeno at pupeno.com.


--- shadow/80954	2007-02-25 04:29:46.000000000 -0500
+++ shadow/80954.tmp.1766	2007-02-25 04:29:46.000000000 -0500
@@ -0,0 +1,38 @@
+Bug#: 80954
+Product: Mono: Class Libraries
+Version: 1.2
+OS Details: 
+Status: NEW   
+Priority: Wishlist
+Component: Mono.Cairo
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: pupeno at pupeno.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: Problem drawing into a context
+I was making a 'custom' widget by inheriting Gtk.DrawingArea and then 
+drawing with Cairo on it. I started from 
+http://www.go-mono.com/docs/index.aspx?link=T%3aCairo.Context and soon 
+found the problem that the screen doesn't get redrawn properly.
+Just try that example, if you hide and un-hide the window it works, but 
+if you move a small window over some parts are not re-drawn and some 
+parts are redrawn with the coordinate system messed up.
+What I can see is the canvas being redrawing with 0,0 in the top-left 
+corner of the window un-hiding the canvas instead of the top-left corner 
+of the canvas.
+So, this is either a problem with the example (linked to above) or with 
+the library, Mono.Cairo, itself. A very similar (I'd say equivalent, but 
+I can't be sure) code in Python just works. That's why I am not 100% the 
+problem is in the documentation (in the example) although I'd say it is 
+the most probable cause.
+In case it is relevant, this is running Kubuntu 6.10 with Cairo 1.2.4, 
+Gtk+ 2.10.6, running Mono installed from the official 
+installation package provided at the Mono web site.

More information about the mono-bugs mailing list