From 45ead7fe85e7107de91bd79a8ceeb1cb17e4f71d Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Wed, 23 Feb 2011 21:49:13 +0100 Subject: [PATCH] d3dx9_36: Cleanup the fixme_once handling. --- dlls/d3dx9_36/surface.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/dlls/d3dx9_36/surface.c b/dlls/d3dx9_36/surface.c index a45349f6d84..1bc2d54be6b 100644 --- a/dlls/d3dx9_36/surface.c +++ b/dlls/d3dx9_36/surface.c @@ -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); }