mirror of
https://github.com/reactos/wine.git
synced 2025-02-27 08:15:36 +00:00
wined3d: Don't print format IDs in decimal.
This is especially silly for FOURCC formats.
This commit is contained in:
parent
fee9c1f2b5
commit
125321d13c
@ -1542,7 +1542,7 @@ const struct wined3d_format_desc *getFormatDescEntry(WINED3DFORMAT fmt, const st
|
|||||||
int idx = getFmtIdx(fmt);
|
int idx = getFmtIdx(fmt);
|
||||||
|
|
||||||
if(idx == -1) {
|
if(idx == -1) {
|
||||||
FIXME("Can't find format %s(%d) in the format lookup table\n", debug_d3dformat(fmt), fmt);
|
FIXME("Can't find format %s (%#x) in the format lookup table\n", debug_d3dformat(fmt), fmt);
|
||||||
/* Get the caller a valid pointer */
|
/* Get the caller a valid pointer */
|
||||||
idx = getFmtIdx(WINED3DFMT_UNKNOWN);
|
idx = getFmtIdx(WINED3DFMT_UNKNOWN);
|
||||||
}
|
}
|
||||||
@ -1719,10 +1719,10 @@ const char* debug_d3dformat(WINED3DFORMAT fmt) {
|
|||||||
fourcc[2] = (char)(fmt >> 16);
|
fourcc[2] = (char)(fmt >> 16);
|
||||||
fourcc[3] = (char)(fmt >> 24);
|
fourcc[3] = (char)(fmt >> 24);
|
||||||
fourcc[4] = 0;
|
fourcc[4] = 0;
|
||||||
if( isprint(fourcc[0]) && isprint(fourcc[1]) && isprint(fourcc[2]) && isprint(fourcc[3]) )
|
if (isprint(fourcc[0]) && isprint(fourcc[1]) && isprint(fourcc[2]) && isprint(fourcc[3]))
|
||||||
FIXME("Unrecognized %u (as fourcc: %s) WINED3DFORMAT!\n", fmt, fourcc);
|
FIXME("Unrecognized %#x (as fourcc: %s) WINED3DFORMAT!\n", fmt, fourcc);
|
||||||
else
|
else
|
||||||
FIXME("Unrecognized %u WINED3DFORMAT!\n", fmt);
|
FIXME("Unrecognized %#x WINED3DFORMAT!\n", fmt);
|
||||||
}
|
}
|
||||||
return "unrecognized";
|
return "unrecognized";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user