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:
zeljko 2010-05-11 10:29:17 +00:00
parent 38fddbeed2
commit 4c4f7a342f

View File

@ -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