mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-11 19:20:12 +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;
|
||||
Poly := QPolygon_create(NumPts, @pts[0]);
|
||||
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);
|
||||
finally
|
||||
QPolygon_destroy(Poly);
|
||||
|
Loading…
Reference in New Issue
Block a user