mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-05-30 23:02:47 +02:00
Qt: improved clipping in TQtWidgetSet.ExtTextOut
git-svn-id: trunk@38628 -
This commit is contained in:
parent
a494c8a157
commit
9b1a4002bc
@ -2246,18 +2246,16 @@ begin
|
||||
|
||||
if (Options and ETO_CLIPPED <> 0) then
|
||||
begin
|
||||
B := QtDC.getClipping;
|
||||
if not B then
|
||||
begin
|
||||
QtDC.save;
|
||||
QtDC.save;
|
||||
try
|
||||
QtDC.setClipRect(Rect^);
|
||||
if Dx <> nil then
|
||||
DoDrawCharByChar(True)
|
||||
else
|
||||
QtDC.drawText(X, Y, Rect^.Right - Rect^.Left, Rect^.Bottom - Rect^.Top, 0, @WideStr);
|
||||
finally
|
||||
QtDC.Restore;
|
||||
end;
|
||||
if Dx <> nil then
|
||||
DoDrawCharByChar(True)
|
||||
else
|
||||
QtDC.drawText(X, Y, Rect^.Right - Rect^.Left, Rect^.Bottom - Rect^.Top, 0, @WideStr);
|
||||
if not B then
|
||||
QtDC.restore;
|
||||
end else
|
||||
begin
|
||||
if Dx <> nil then
|
||||
|
Loading…
Reference in New Issue
Block a user