Fixed the displaying of the FOURCC codes in _dump_pixelformat.

oldstable
Lionel Ulmer 2000-08-25 21:34:09 +00:00 committed by Alexandre Julliard
parent c70082fb22
commit 6cd85a5816
1 changed files with 5 additions and 4 deletions

View File

@ -216,11 +216,12 @@ void _dump_pixelformat(void *in) {
DPRINTF("( ");
_dump_pixelformat_flag(pf->dwFlags);
if (pf->dwFlags & DDPF_FOURCC) {
DPRINTF(", dwFourCC : %c%c%c%c",
(unsigned char)((pf->dwFourCC>>24)&0xff),
(unsigned char)((pf->dwFourCC>>16)&0xff),
DPRINTF(", dwFourCC (%08lx) : %c%c%c%c",
pf->dwFourCC,
(unsigned char)( pf->dwFourCC &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) {