mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-13 06:19:15 +02:00
(Qt): Small fix in CreatePolygonRgn()
git-svn-id: trunk@12138 -
This commit is contained in:
parent
589219fcdc
commit
4a83d24899
@ -654,7 +654,11 @@ begin
|
|||||||
end;
|
end;
|
||||||
Poly := QPolygon_create(NumPts, @pts[0]);
|
Poly := QPolygon_create(NumPts, @pts[0]);
|
||||||
try
|
try
|
||||||
QtRegion := TQtRegion.Create(True, Poly, QtWindingFill);
|
{fillmode can be ALTERNATE or WINDING as msdn says}
|
||||||
|
if FillMode = ALTERNATE then
|
||||||
|
QtRegion := TQtRegion.Create(True, Poly, QtOddEvenFill)
|
||||||
|
else
|
||||||
|
QtRegion := TQtRegion.Create(True, Poly, QtWindingFill);
|
||||||
Result := HRGN(QtRegion);
|
Result := HRGN(QtRegion);
|
||||||
finally
|
finally
|
||||||
QPolygon_destroy(Poly);
|
QPolygon_destroy(Poly);
|
||||||
|
Loading…
Reference in New Issue
Block a user