Author: mjansen
Date: Sun Sep 24 21:32:18 2017
New Revision: 75965
URL:
http://svn.reactos.org/svn/reactos?rev=75965&view=rev
Log:
[WINED3D] Silence a noisy DPRINT that makes Test KVM AHK abort.
CORE-13829
Modified:
trunk/reactos/dll/directx/wine/wined3d/palette.c
Modified: trunk/reactos/dll/directx/wine/wined3d/palette.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/directx/wine/wined3d/p…
==============================================================================
--- trunk/reactos/dll/directx/wine/wined3d/palette.c [iso-8859-1] (original)
+++ trunk/reactos/dll/directx/wine/wined3d/palette.c [iso-8859-1] Sun Sep 24 21:32:18
2017
@@ -85,7 +85,15 @@
void CDECL wined3d_palette_apply_to_dc(const struct wined3d_palette *palette, HDC dc)
{
if (SetDIBColorTable(dc, 0, 256, palette->colors) != 256)
+#ifdef __REACTOS__
+ {
+ static int warn_once;
+ if (!warn_once++)
+ ERR("Failed to set DIB color table. (Only printing once)\n");
+ }
+#else
ERR("Failed to set DIB color table.\n");
+#endif
}
HRESULT CDECL wined3d_palette_set_entries(struct wined3d_palette *palette,