d3dx9_36: Cleanup the fixme_once handling.

This commit is contained in:
Alexandre Julliard 2011-02-23 21:49:13 +01:00
parent b7987db36f
commit 45ead7fe85
1 changed files with 2 additions and 8 deletions

View File

@ -604,10 +604,7 @@ static DWORD dword_from_bytes(CONST BYTE *src, UINT bytes_per_pixel)
static BOOL fixme_once;
if(bytes_per_pixel > sizeof(DWORD)) {
if(!fixme_once) {
FIXME("Unsupported image: %u bytes per pixel\n", bytes_per_pixel);
fixme_once = TRUE;
}
if(!fixme_once++) FIXME("Unsupported image: %u bytes per pixel\n", bytes_per_pixel);
bytes_per_pixel = sizeof(DWORD);
}
@ -620,10 +617,7 @@ static void dword_to_bytes(BYTE *dst, DWORD dword, UINT bytes_per_pixel)
static BOOL fixme_once;
if(bytes_per_pixel > sizeof(DWORD)) {
if(!fixme_once++) {
FIXME("Unsupported image: %u bytes per pixel\n", bytes_per_pixel);
fixme_once = TRUE;
}
if(!fixme_once++) FIXME("Unsupported image: %u bytes per pixel\n", bytes_per_pixel);
ZeroMemory(dst, bytes_per_pixel);
bytes_per_pixel = sizeof(DWORD);
}