mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 06:49:12 +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
|
if (Options and ETO_CLIPPED <> 0) then
|
||||||
begin
|
begin
|
||||||
B := QtDC.getClipping;
|
QtDC.save;
|
||||||
if not B then
|
try
|
||||||
begin
|
|
||||||
QtDC.save;
|
|
||||||
QtDC.setClipRect(Rect^);
|
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;
|
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
|
end else
|
||||||
begin
|
begin
|
||||||
if Dx <> nil then
|
if Dx <> nil then
|
||||||
|
Loading…
Reference in New Issue
Block a user