- {
- SR.left = mScrollX + mDestXOff;
- SR.top = mScrollY + mDestYOff;
- SR.right = SR.left + tX;
- SR.bottom = SR.top + tY;
- // If mWidth < SR.right Then
- // SR.right = mWidth
- // DR.right = DR.left + Stretch * (SR.right - SR.left)
- // End If
- // If mHeight < SR.bottom Then
- // SR.bottom = mHeight
- // DR.bottom = DR.top + Stretch * (SR.bottom - SR.top)
- // End If
- // If (mScrollX + mDestXOff) < 0 Then
- // SR.left = 0
- // DR.left = DR.left - Stretch * (mScrollX + mDestXOff)
- // End If
- // If (mScrollY + mDestYOff) < 0 Then
- // SR.top = 0
- // DR.top = DR.top - Stretch * (mScrollY + mDestYOff)
- // End If
- }
- // DDraw.WaitForVerticalBlank DDWAITVB_BLOCKBEGIN, 0
- if (IS_NOTHING(&Buffer, sizeof(Buffer)))
- return;
-
- if (IS_NOTHING(&PrimarySurface, sizeof(PrimarySurface)))
- return;
-
- L = PrimarySurface.Blt(DR, &Buffer, SR, DDBLT_WAIT);
- if (L != DD_OK)
- {
- switch (L)
- {
-#if 0
- case DDERR_GENERIC:
- Debug.Assert(False);
- break;
-
- case DDERR_INVALIDCLIPLIST:
- Debug.Assert(False);
- break;
-
- case DDERR_INVALIDOBJECT:
- Debug.Assert(False);
- break;
-
- case DDERR_INVALIDPARAMS:
- Debug.Assert(False);
- break;
-
- case DDERR_INVALIDRECT:
- Debug.Assert(False);
- break;
-
- case DDERR_NOALPHAHW:
- Debug.Assert(False);
- break;
-
- case DDERR_NOBLTHW:
- Debug.Assert(False);
- break;
-
- case DDERR_NOCLIPLIST:
- Debug.Assert(False);
- break;
-
- case DDERR_NODDROPSHW:
- Debug.Assert(False);
- break;
-
- case DDERR_NOMIRRORHW:
- Debug.Assert(False);
- break;
-
- case DDERR_NORASTEROPHW:
- Debug.Assert(False);
- break;
-
- case DDERR_NOROTATIONHW:
- Debug.Assert(False);
- break;
-
- case DDERR_NOSTRETCHHW:
- Debug.Assert(False);
- break;
-
- case DDERR_NOZBUFFERHW:
- Debug.Assert(False);
- break;
-
- case DDERR_SURFACEBUSY:
- Debug.Assert(False);
- break;
-#endif