1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-15 06:04:49 +01:00

add some testing code to blitter functions

This commit is contained in:
FunkyFr3sh 2022-09-28 01:59:12 +02:00
parent c8d7719d04
commit 7f7f90182f

View File

@ -210,6 +210,20 @@ HRESULT dds_Blt(
dds_GetDC(src_surface, &src_dc);
StretchBlt(dst_dc, dst_x, dst_y, dst_w, dst_h, src_dc, src_x, src_y, src_w, src_h, SRCCOPY);
/*
StretchBlt(
dst_dc,
lpDestRect->left,
lpDestRect->top,
lpDestRect->right - lpDestRect->left,
lpDestRect->bottom - lpDestRect->top,
src_dc,
lpSrcRect->left,
lpSrcRect->top,
lpSrcRect->right - lpSrcRect->left,
lpSrcRect->bottom - lpSrcRect->top,
SRCCOPY);
*/
}
else if (
(dwFlags & DDBLT_KEYSRC) ||
@ -447,6 +461,18 @@ HRESULT dds_BltFast(
dds_GetDC(src_surface, &src_dc);
BitBlt(dst_dc, dst_x, dst_y, dst_w, dst_h, src_dc, src_x, src_y, SRCCOPY);
/*
BitBlt(
dst_dc,
dwX,
dwY,
lpSrcRect->right - lpSrcRect->left,
lpSrcRect->bottom - lpSrcRect->top,
src_dc,
lpSrcRect->left,
lpSrcRect->top,
SRCCOPY);
*/
}
else if (dwFlags & DDBLTFAST_SRCCOLORKEY)
{