d3d9/tests/visual.c -- simplification

Gerald Pfeifer gerald at pfeifer.com
Tue Jan 1 05:36:36 CST 2008


b is of type DWORD, thus always >= 0x00.  This avoids one of the few
warnings left in this area.

Gerald

ChangeLog:
Simplify condition in test_vshader_input().

Index: dlls/d3d9/tests/visual.c
===================================================================
RCS file: /home/wine/wine/dlls/d3d9/tests/visual.c,v
retrieving revision 1.62
diff -u -3 -p -r1.62 visual.c
--- dlls/d3d9/tests/visual.c	21 Dec 2007 13:30:16 -0000	1.62
+++ dlls/d3d9/tests/visual.c	1 Jan 2008 11:33:08 -0000
@@ -5142,7 +5143,7 @@ void test_vshader_input(IDirect3DDevice9
         r = (color & 0x00ff0000) >> 16;
         g = (color & 0x0000ff00) >>  8;
         b = (color & 0x000000ff) >>  0;
-        ok(r >= 0xfe && r <= 0xff && g >= 0xfe && g <= 0xff && b >= 0x00 && b <= 0x01,
+        ok(r >= 0xfe && r <= 0xff && g >= 0xfe && g <= 0xff && b <= 0x01,
            "Input test: Quad 4(color-float) returned color 0x%08x, expected 0x00FFFF00\n", color);
 
         IDirect3DVertexShader9_Release(texcoord_color_shader);



More information about the wine-patches mailing list