mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 23:19:12 +02:00
lcl: in TRawImage.ExtractRect, use the direct data copy only when the requested rect.top = 0
git-svn-id: trunk@23608 -
This commit is contained in:
parent
4db4e7accc
commit
fca28023ef
@ -1311,7 +1311,7 @@ procedure TRawImage.ExtractRect(const ARect: TRect; out ADst: TRawImage);
|
|||||||
LineOrder := Description.LineOrder;
|
LineOrder := Description.LineOrder;
|
||||||
|
|
||||||
//DebugLn'ExtractRawImageDataRect data=',DbgS(DestData),' Size=',DestDataSize);
|
//DebugLn'ExtractRawImageDataRect data=',DbgS(DestData),' Size=',DestDataSize);
|
||||||
if SrcWidth = DstWidth
|
if (SrcWidth = DstWidth) and (ARect.Top = 0)
|
||||||
then begin
|
then begin
|
||||||
if LineOrder = riloTopToBottom
|
if LineOrder = riloTopToBottom
|
||||||
then // copy whole source from beginning
|
then // copy whole source from beginning
|
||||||
|
Loading…
Reference in New Issue
Block a user