HRESULT DirectDraw::GetGDISurface( LPDIRECTDRAWSURFACE FAR *lplpGDIDDSSurface ) { std::ostringstream str; str << this << " " << __FUNCTION__; HRESULT hr = this->_original->GetGDISurface(lplpGDIDDSSurface); if (SUCCEEDED(hr)) { *lplpGDIDDSSurface = GetOrCreateWrapperT(DirectDrawSurface, *lplpGDIDDSSurface); } str << std::endl; str << tostr_HR(hr); if (lplpGDIDDSSurface) { str << " " << *lplpGDIDDSSurface; } LogText(str.str()); return hr; }
HRESULT DirectDraw4::CreatePalette( DWORD dwFlags, LPPALETTEENTRY lpColorTable, LPDIRECTDRAWPALETTE FAR *lplpDDPalette, IUnknown FAR *pUnkOuter ) { std::ostringstream str; str << this << " " << __FUNCTION__; if (dwFlags & DDPCAPS_1BIT) { str << " 1BIT"; } if (dwFlags & DDPCAPS_2BIT) { str << " 2BIT"; } if (dwFlags & DDPCAPS_4BIT) { str << " 4BIT"; } if (dwFlags & DDPCAPS_8BITENTRIES) { str << " 8BITENTRIES"; } if (dwFlags & DDPCAPS_8BIT) { str << " 8BIT"; } if (dwFlags & DDPCAPS_ALLOW256) { str << " ALLOW256"; } LogText(str.str()); HRESULT hr = this->_original->CreatePalette(dwFlags, lpColorTable, lplpDDPalette, pUnkOuter); if (SUCCEEDED(hr)) { *lplpDDPalette = GetOrCreateWrapperT(DirectDrawPalette, *lplpDDPalette); } return hr; }