Alexandre Julliard : d3dx9_36: Cleanup the fixme_once handling.
Alexandre Julliard
julliard at winehq.org
Thu Feb 24 11:43:24 CST 2011
Module: wine
Branch: master
Commit: 45ead7fe85e7107de91bd79a8ceeb1cb17e4f71d
URL: http://source.winehq.org/git/wine.git/?a=commit;h=45ead7fe85e7107de91bd79a8ceeb1cb17e4f71d
Author: Alexandre Julliard <julliard at winehq.org>
Date: Wed Feb 23 21:49:13 2011 +0100
d3dx9_36: Cleanup the fixme_once handling.
---
dlls/d3dx9_36/surface.c | 10 ++--------
1 files changed, 2 insertions(+), 8 deletions(-)
diff --git a/dlls/d3dx9_36/surface.c b/dlls/d3dx9_36/surface.c
index a45349f..1bc2d54 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);
}
More information about the wine-cvs
mailing list