DXGL r458 - Code Review

Jump to navigation Jump to search
Repository:DXGL
Revision:r457‎ | r458 | r459 >
Date:00:56, 5 July 2014
Author:admin
Status:new
Tags:
Comment:
Do not allow BltFast when a clipper is attached, per MSDN documentation.
Modified paths:
  • /ddraw/glDirectDrawSurface.cpp (modified) (history)

Diff [purge]

Index: ddraw/glDirectDrawSurface.cpp
@@ -653,6 +653,7 @@
654654 {
655655 TRACE_ENTER(6,14,this,8,dwX,8,dwY,14,lpDDSrcSurface,26,lpSrcRect,9,dwTrans);
656656 if(!this) TRACE_RET(HRESULT,23,DDERR_INVALIDOBJECT);
 657+ if (clipper) TRACE_RET(HRESULT,23,DDERR_UNSUPPORTED);
657658 DDSURFACEDESC2 ddsd;
658659 ddsd.dwSize = sizeof(DDSURFACEDESC2);
659660 lpDDSrcSurface->GetSurfaceDesc(&ddsd);