Fixed the displaying of the FOURCC codes in _dump_pixelformat.
This commit is contained in:
parent
c70082fb22
commit
6cd85a5816
|
@ -216,11 +216,12 @@ void _dump_pixelformat(void *in) {
|
||||||
DPRINTF("( ");
|
DPRINTF("( ");
|
||||||
_dump_pixelformat_flag(pf->dwFlags);
|
_dump_pixelformat_flag(pf->dwFlags);
|
||||||
if (pf->dwFlags & DDPF_FOURCC) {
|
if (pf->dwFlags & DDPF_FOURCC) {
|
||||||
DPRINTF(", dwFourCC : %c%c%c%c",
|
DPRINTF(", dwFourCC (%08lx) : %c%c%c%c",
|
||||||
(unsigned char)((pf->dwFourCC>>24)&0xff),
|
pf->dwFourCC,
|
||||||
(unsigned char)((pf->dwFourCC>>16)&0xff),
|
(unsigned char)( pf->dwFourCC &0xff),
|
||||||
(unsigned char)((pf->dwFourCC>> 8)&0xff),
|
(unsigned char)((pf->dwFourCC>> 8)&0xff),
|
||||||
(unsigned char)( pf->dwFourCC &0xff)
|
(unsigned char)((pf->dwFourCC>>16)&0xff),
|
||||||
|
(unsigned char)((pf->dwFourCC>>24)&0xff)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if (pf->dwFlags & DDPF_RGB) {
|
if (pf->dwFlags & DDPF_RGB) {
|
||||||
|
|
Loading…
Reference in New Issue