[Mono-bugs] [Bug 631774] New: ControlPaint.DrawReversibleLine doesn't draw anything

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Aug 17 04:24:30 EDT 2010



           Summary: ControlPaint.DrawReversibleLine doesn't draw anything
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.0.x
          Platform: x86
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Windows.Forms
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: carlo.milanesi at libero.it
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.0; it; rv:
Gecko/20100722 Firefox/3.6.8 ( .NET CLR 3.5.30729)

In a UserControl-derived class, the method call
ControlPaint.DrawReversibleLine(...) should draw a line on the screen using a
XOR raster operation, but it draws somewhere under the form, and therefore its
output appears only for a tiny fraction of a second.

Reproducible: Always

Steps to Reproduce:
1. Create a class derived from UserControl, whose method OnPaint calls
ControlPaint.DrawReversibleLine(0, 0, 1000, 1000, Color.Black)
2. Insert an instance of such control in a Form that is opened when the program
3. Run the program. To let you see the lines drawn, insert the call in a loop
repeated 10000 times.

Expected Results:  
It should draw a line

Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.

More information about the mono-bugs mailing list