=?UTF-8?Q?Fr=C3=A9d=C3=A9ric=20Delanoy=20?=: gdi32/tests: Use BOOL type where appropriate.

Alexandre Julliard julliard at winehq.org
Thu Oct 3 15:18:01 CDT 2013


Module: wine
Branch: master
Commit: 3b2f85e0b63c6fb70e26efe6cbe480128200eea0
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=3b2f85e0b63c6fb70e26efe6cbe480128200eea0

Author: Frédéric Delanoy <frederic.delanoy at gmail.com>
Date:   Thu Oct  3 00:08:55 2013 +0200

gdi32/tests: Use BOOL type where appropriate.

---

 dlls/gdi32/tests/bitmap.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/gdi32/tests/bitmap.c b/dlls/gdi32/tests/bitmap.c
index 6b52356..dfa8711 100644
--- a/dlls/gdi32/tests/bitmap.c
+++ b/dlls/gdi32/tests/bitmap.c
@@ -1564,7 +1564,7 @@ static COLORREF get_nearest( int r, int g, int b )
     return (r*r + g*g + b*b < (255-r)*(255-r) + (255-g)*(255-g) + (255-b)*(255-b)) ? 0x000000 : 0xffffff;
 }
 
-static int is_black_pen( COLORREF fg, COLORREF bg, int r, int g, int b )
+static BOOL is_black_pen( COLORREF fg, COLORREF bg, int r, int g, int b )
 {
     if (fg == 0 || bg == 0xffffff) return RGB(r,g,b) != 0xffffff && RGB(r,g,b) != bg;
     return RGB(r,g,b) == 0x000000 || RGB(r,g,b) == bg;




More information about the wine-cvs mailing list