Browse Source

Fix assumption R.TopLeft is always 0.

Martijn Laan 1 month ago
parent
commit
1539ff4eab
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Components/BitmapImage.pas

+ 1 - 1
Components/BitmapImage.pas

@@ -259,7 +259,7 @@ begin
             StretchedBitmap.Palette := CopyPalette(Bitmap.Palette);
             StretchedBitmap.Width := W;
             StretchedBitmap.Height := H;
-            StretchedBitmap.Canvas.StretchDraw(R, Bitmap);
+            StretchedBitmap.Canvas.StretchDraw(Rect(0, 0, W, H), Bitmap);
           end;
         end;
       end;