mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-04 00:00:24 +02:00
Qt: removed unneeded "fix" in SelectClipRgn(), ExtSelectClipRgn() was buggy and it's fixed in r25180 #cce49136d6
git-svn-id: trunk@25315 -
This commit is contained in:
parent
38fddbeed2
commit
4c4f7a342f
@ -4417,13 +4417,9 @@ begin
|
||||
begin
|
||||
Result := TQtRegion(Rgn).GetRegionType;
|
||||
// RGN is in Device coordinates. Qt expects logical coordinates
|
||||
// so we need to convert RGN coords,
|
||||
// but only if our painter clips already, otherwise we have a mess !
|
||||
if QtDC.getClipping then
|
||||
begin
|
||||
GetWindowOrgEx(DC, @P);
|
||||
TQtRegion(Rgn).translate(P.X, P.Y);
|
||||
end;
|
||||
// so we need to convert RGN coords.
|
||||
GetWindowOrgEx(DC, @P);
|
||||
TQtRegion(Rgn).translate(P.X, P.Y);
|
||||
QtDC.setClipRegion(TQtRegion(Rgn).Widget);
|
||||
end else
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user