DXGL r543 - Code Review

Jump to navigation Jump to search
Repository:DXGL
Revision:r542‎ | r543 | r544 >
Date:17:37, 21 September 2014
Author:admin
Status:new
Tags:
Comment:
Set surface dirty when unlocked, even when not already locked. Fixes FMV on Lands of Lore III.
Modified paths:
  • /ddraw/glDirectDrawSurface.cpp (modified) (history)

Diff [purge]

Index: ddraw/glDirectDrawSurface.cpp
@@ -1492,7 +1492,8 @@
14931493 {
14941494 TRACE_ENTER(2,14,this,26,lpRect);
14951495 if(!this) TRACE_RET(HRESULT,23,DDERR_INVALIDOBJECT);
1496 - if(!locked) TRACE_RET(HRESULT,23,DDERR_NOTLOCKED);
 1496+ dirty |= 1;
 1497+ if (!locked) TRACE_RET(HRESULT, 23, DDERR_NOTLOCKED);
14971498 locked--;
14981499 ddsd.lpSurface = NULL;
14991500 if(((ddsd.ddsCaps.dwCaps & (DDSCAPS_FRONTBUFFER)) &&