mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
wined3d: Also print the format like a fourcc if unknown in debug_d3dformat.
This commit is contained in:
parent
6444876da2
commit
df3e078b20
1 changed files with 12 additions and 1 deletions
|
@ -95,7 +95,18 @@ const char* debug_d3dformat(WINED3DFORMAT fmt) {
|
|||
FMT_TO_STR(WINED3DFMT_CxV8U8);
|
||||
#undef FMT_TO_STR
|
||||
default:
|
||||
FIXME("Unrecognized %u D3DFORMAT!\n", fmt);
|
||||
{
|
||||
char fourcc[5];
|
||||
fourcc[0] = (char)(fmt);
|
||||
fourcc[1] = (char)(fmt >> 8);
|
||||
fourcc[2] = (char)(fmt >> 16);
|
||||
fourcc[3] = (char)(fmt >> 24);
|
||||
fourcc[4] = 0;
|
||||
if( isprint(fourcc[0]) && isprint(fourcc[1]) && isprint(fourcc[2]) && isprint(fourcc[3]) )
|
||||
FIXME("Unrecognized %u (as fourcc: %s) D3DFORMAT!\n", fmt, fourcc);
|
||||
else
|
||||
FIXME("Unrecognized %u D3DFORMAT!\n", fmt);
|
||||
}
|
||||
return "unrecognized";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue