WineHQ
Bug Tracking Database – Bug 34102

 Bugzilla

 

Last modified: 2013-11-15 13:40:16 UTC  

It is not drawn when specify 0 for the width and height in GdipDrawString.

Bug 34102 - It is not drawn when specify 0 for the width and height in GdipDrawString.
It is not drawn when specify 0 for the width and height in GdipDrawString.
Status: CLOSED FIXED
AppDB: Show Apps affected by this bug
Product: Wine
Classification: Unclassified
Component: gdiplus
1.6
x86 Linux
: P2 normal
: ---
Assigned To: Mr. Bugs
:
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2013-07-21 01:40 UTC by masakazu matsubara
Modified: 2013-11-15 13:40 UTC (History)
0 users

See Also:
Regression SHA1:
Fixed by SHA1: 814f9cf7e4af9afd91196b75c581de792a239338
Distribution: ---
Staged patchset:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description masakazu matsubara 2013-07-21 01:40:58 UTC
It is not drawn when specify 0 for the width and height in GdipDrawString.

Do not clipping If specify a 0.0 in Width and Height, "RectF" parameter in the original GdipDrawString.
But, GdipDrawString of Wine 1.6 would be clipped, drawing is not performed.
Comment 1 masakazu matsubara 2013-07-22 00:30:34 UTC
sample (C#)


private void Form1_Paint(object sender, PaintEventArgs e)
{
    Graphics g = this.CreateGraphics();
    Font font = new Font("Arial", 20);
    Brush brush = new SolidBrush(Color.Black);
    RectangleF rect1 = new RectangleF(10, 10,  0, 0);
    RectangleF rect2 = new RectangleF(10, 100, 200, 50);

    //  Not drawn (Will be drawn on Windows)
    g.DrawString("ABCDE", font, brush, rect1);  

    //  Will be drawn
    g.DrawString("abcde", font, brush, rect2);  
}
Comment 2 Dmitry Timoshkov 2013-08-16 05:45:12 UTC
Should be fixed by 814f9cf7e4af9afd91196b75c581de792a239338.
Comment 3 Alexandre Julliard 2013-08-30 13:05:50 UTC
Closing bugs fixed in 1.7.1.
Comment 4 Alexandre Julliard 2013-11-15 13:40:16 UTC
Removing 1.6.x milestone from bugs included in 1.6.1.


Privacy Policy
If you have a privacy inquiry regarding this site, please write to [email protected]

Hosted By CodeWeavers