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:
parent
5e972cf056
commit
e4b67be7ec
@ -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)
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user