Fix blitting with negative dimensions

This commit is contained in:
Wayward Heart 2024-03-24 07:38:42 -05:00
parent cf762c77f1
commit 8b14894b6f

View file

@ -925,7 +925,7 @@ void Bitmap::blt(int x, int y,
if (source.isDisposed())
return;
stretchBlt(IntRect(x, y, rect.w, rect.h),
stretchBlt(IntRect(x, y, abs(rect.w), abs(rect.h)),
source, rect, opacity);
}