DXGL r426 - Code Review

Jump to navigation Jump to search
Repository:DXGL
Revision:r425‎ | r426 | r427 >
Date:13:42, 13 April 2014
Author:admin
Status:new
Tags:
Comment:
Partial support for GetBltStatus.
Modified paths:
  • /ddraw/glDirectDrawSurface.cpp (modified) (history)

Diff [purge]

Index: ddraw/glDirectDrawSurface.cpp
@@ -833,9 +833,10 @@
834834 {
835835 TRACE_ENTER(2,14,this,9,dwFlags);
836836 if(!this) TRACE_RET(HRESULT,23,DDERR_INVALIDOBJECT);
837 - FIXME("glDirectDrawSurface7::GetBltStatus: stub\n");
838 - TRACE_EXIT(23,DDERR_GENERIC);
839 - ERR(DDERR_GENERIC);
 837+ HRESULT islost = this->IsLost();
 838+ if (islost == DDERR_SURFACELOST) return DDERR_SURFACELOST;
 839+ // Async rendering not yet implemented
 840+ return DD_OK;
840841 }
841842 HRESULT WINAPI glDirectDrawSurface7::GetCaps(LPDDSCAPS2 lpDDSCaps)
842843 {