mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-15 14:29:31 +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;
|
||||
|
||||
//DebugLn'ExtractRawImageDataRect data=',DbgS(DestData),' Size=',DestDataSize);
|
||||
if SrcWidth = DstWidth
|
||||
if (SrcWidth = DstWidth) and (ARect.Top = 0)
|
||||
then begin
|
||||
if LineOrder = riloTopToBottom
|
||||
then // copy whole source from beginning
|
||||
|
Loading…
Reference in New Issue
Block a user