wined3d: Also print the format like a fourcc if unknown in debug_d3dformat.

Alexandre Julliard julliard at winehq.org
Tue Apr 4 13:33:11 CDT 2006


Jan Zerebecki <jan.wine at zerebecki.de> writes:

> --- a/dlls/wined3d/utils.c
> +++ b/dlls/wined3d/utils.c
> @@ -94,7 +94,7 @@ const char* debug_d3dformat(WINED3DFORMA
>      FMT_TO_STR(WINED3DFMT_CxV8U8);
>  #undef FMT_TO_STR
>    default:
> -    FIXME("Unrecognized %u D3DFORMAT!\n", fmt);
> +    FIXME("Unrecognized %u (as fourcc: %s) D3DFORMAT!\n", fmt, debugstr_an((CHAR*)&fmt,4));

Using %c%c%c%c as format would be better than a debugstr hack.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list