1
0
mirror of https://github.com/narzoul/DDrawCompat synced 2024-12-30 08:55:36 +01:00

Fixed misleading error messages

This commit is contained in:
narzoul 2016-05-01 19:59:53 +02:00
parent 5e972cf056
commit e4b67be7ec
3 changed files with 6 additions and 10 deletions

View File

@ -288,6 +288,10 @@ HRESULT STDMETHODCALLTYPE CompatDirectDrawSurface<TSurface>::Blt(
(lpDDBltFx->dwDDFX & (DDBLTFX_MIRRORLEFTRIGHT | DDBLTFX_MIRRORUPDOWN)))
{
mirroredSrcSurface = getMirroredSurface(*lpDDSrcSurface, lpSrcRect, lpDDBltFx->dwDDFX);
if (!mirroredSrcSurface)
{
LOG_ONCE("Failed to emulate a mirrored Blt");
}
}
if (mirroredSrcSurface)

View File

@ -62,12 +62,8 @@ namespace
surface.desc.ddpfPixelFormat = pf;
surface.desc.ddsCaps.dwCaps = caps;
HRESULT result = CompatDirectDraw<IDirectDraw7>::s_origVtable.CreateSurface(
CompatDirectDraw<IDirectDraw7>::s_origVtable.CreateSurface(
dd, &surface.desc, &surface.surface, nullptr);
if (FAILED(result))
{
LOG_ONCE("Failed to create a repository surface: " << result);
}
return surface;
}

View File

@ -367,12 +367,8 @@ void RealPrimarySurface::setPalette()
{
if (s_surfaceDesc.ddpfPixelFormat.dwRGBBitCount <= 8)
{
HRESULT result = CompatDirectDrawSurface<IDirectDrawSurface7>::s_origVtable.SetPalette(
CompatDirectDrawSurface<IDirectDrawSurface7>::s_origVtable.SetPalette(
g_frontBuffer, CompatPrimarySurface::palette);
if (FAILED(result) && DDERR_NOPALETTEATTACHED != result)
{
LOG_ONCE("Failed to set the palette on the real primary surface: " << result);
}
}
updatePalette(0, 256);