Commit afa4d323 authored by Evan Stade's avatar Evan Stade Committed by Alexandre Julliard

gdiplus: Better handle UnitPixel pen width.

parent e807eb9a
......@@ -92,6 +92,10 @@ static INT prepare_dc(GpGraphics *graphics, GpPen *pen)
EndPath(graphics->hdc);
if(pen->unit == UnitPixel){
width = pen->width;
}
else{
/* Get an estimate for the amount the pen width is affected by the world
* transform. (This is similar to what some of the wine drivers do.) */
pt[0].X = 0.0;
......@@ -104,6 +108,7 @@ static INT prepare_dc(GpGraphics *graphics, GpPen *pen)
width *= pen->width * convert_unit(graphics->hdc,
pen->unit == UnitWorld ? graphics->unit : pen->unit);
}
if(pen->dash == DashStyleCustom){
numdashes = min(pen->numdashes, MAX_DASHLEN);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment