http://bugs.winehq.org/show_bug.cgi?id=30684
Bug #: 30684 Summary: Mono: GroupBox draws border line after text Product: Wine Version: 1.5.3 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: gdiplus AssignedTo: wine-bugs@winehq.org ReportedBy: vgr.subscription@gmail.com Classification: Unclassified
Created attachment 40182 --> http://bugs.winehq.org/attachment.cgi?id=40182 GroupBox draws border line after text
Mono-2.10.8 for Windows is installed.
I have simple winform with GroupBox. GroupBox draws border line after text.
System: openSUSE 12.1 (i586)
Mono for Windows: http://www.go-mono.com/mono-downloads/download.html
http://bugs.winehq.org/show_bug.cgi?id=30684
--- Comment #1 from Vincent Povirk madewokherd@gmail.com 2012-05-15 10:02:14 CDT --- Can you attach your test .exe and/or C# source code?
Does this work correctly with native GDI+, or Mono on real Windows?
http://bugs.winehq.org/show_bug.cgi?id=30684
--- Comment #2 from Ivan Voyager vgr.subscription@gmail.com 2012-05-16 02:19:39 CDT --- Created attachment 40191 --> http://bugs.winehq.org/attachment.cgi?id=40191 Binary and source
http://bugs.winehq.org/show_bug.cgi?id=30684
--- Comment #3 from Ivan Voyager vgr.subscription@gmail.com 2012-05-16 02:25:52 CDT --- I've added attachment with exe and source.
Does this work correctly with native GDI+, or Mono on real Windows?
Yes, it draws correctly in Mono on Windows (I've Vista Business SP2).
Possible method stack:
System.Windows.Forms.GroupBoxRenderer.DrawGroupBox -> Graphics.SetClip (GdipSetClipRectI) -> ControlPaint.DrawBorder3D -> Theme.CPDrawBorder3D -> Graphics.DrawLine (GdipDrawLineI)
[DllImport("gdiplus.dll")] internal static extern Status GdipSetClipRectI(IntPtr graphics, int x, int y, int width, int height, CombineMode combineMode);
[DllImport("gdiplus.dll")] internal static extern Status GdipDrawLineI(IntPtr graphics, IntPtr pen, int x1, int y1, int x2, int y2);
http://bugs.winehq.org/show_bug.cgi?id=30684
--- Comment #4 from Vincent Povirk madewokherd@gmail.com 2012-05-16 08:36:59 CDT --- Yes, clipping isn't implemented yet. It's surprising how long we've been able to get away with that.
http://bugs.winehq.org/show_bug.cgi?id=30684
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, testcase
http://bugs.winehq.org/show_bug.cgi?id=30684
--- Comment #5 from Vincent Povirk madewokherd@gmail.com 2013-10-30 12:56:20 CDT --- I sent some patches for this: http://www.winehq.org/pipermail/wine-patches/2013-October/128045.html http://www.winehq.org/pipermail/wine-patches/2013-October/128046.html
https://bugs.winehq.org/show_bug.cgi?id=30684
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |08b650202cf9dccd94be8ec9d73 | |564ae539620db Resolution|--- |FIXED Status|UNCONFIRMED |RESOLVED
--- Comment #6 from Bruno Jesus 00cpxxx@gmail.com --- (In reply to Vincent Povirk from comment #5)
I sent some patches for this: http://www.winehq.org/pipermail/wine-patches/2013-October/128045.html http://www.winehq.org/pipermail/wine-patches/2013-October/128046.html
https://source.winehq.org/git/wine.git/commitdiff/08b650202cf9dccd94be8ec9d7... https://source.winehq.org/git/wine.git/commitdiff/1202e9af56521f7362e8e11839...
Fixed long ago. Tested with app from comment 2.
https://bugs.winehq.org/show_bug.cgi?id=30684
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #7 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 2.6.