From b36077965d685a01e748676981719fc73faff3a1 Mon Sep 17 00:00:00 2001 From: elasota Date: Fri, 27 Dec 2019 14:18:34 -0500 Subject: [PATCH] Demote scaled blit to TODO --- PortabilityLayer/PLQDraw.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/PortabilityLayer/PLQDraw.cpp b/PortabilityLayer/PLQDraw.cpp index 4702303..99a6fef 100644 --- a/PortabilityLayer/PLQDraw.cpp +++ b/PortabilityLayer/PLQDraw.cpp @@ -556,8 +556,12 @@ static void CopyBitsComplete(const BitMap *srcBitmap, const BitMap *maskBitmap, const size_t srcPitch = srcBitmap->m_pitch; const size_t destPitch = destBitmap->m_pitch; - assert(srcRectBase->right - srcRectBase->left == destRectBase->right - destRectBase->left); - assert(srcRectBase->bottom - srcRectBase->top == destRectBase->bottom - destRectBase->top); + if (srcRectBase->right - srcRectBase->left != destRectBase->right - destRectBase->left || + srcRectBase->bottom - srcRectBase->top != destRectBase->bottom - destRectBase->top) + { + PL_NotYetImplemented_TODO("ScaledBlit"); + return; + } if (maskBitmap) {