=?UTF-8?Q?Fr=C3=A9d=C3=A9ric=20Delanoy=20?=: winex11.drv: Use BOOL type where appropriate.

Alexandre Julliard julliard at winehq.org
Wed Oct 2 15:49:12 CDT 2013


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

Author: Frédéric Delanoy <frederic.delanoy at gmail.com>
Date:   Tue Oct  1 23:33:53 2013 +0200

winex11.drv: Use BOOL type where appropriate.

---

 dlls/winex11.drv/mouse.c  |    6 ++++--
 dlls/winex11.drv/window.c |    3 ++-
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/dlls/winex11.drv/mouse.c b/dlls/winex11.drv/mouse.c
index 168914f..b33827b 100644
--- a/dlls/winex11.drv/mouse.c
+++ b/dlls/winex11.drv/mouse.c
@@ -623,7 +623,8 @@ static XcursorImage *create_xcursor_frame( HDC hdc, const ICONINFOEXW *iinfo, HA
 {
     XcursorImage *image, *ret = NULL;
     DWORD delay_jiffies, num_steps;
-    int x, y, i, has_alpha = FALSE;
+    int x, y, i;
+    BOOL has_alpha = FALSE;
     XcursorPixel *ptr;
 
     image = pXcursorImageCreate( width, height );
@@ -1137,7 +1138,8 @@ static Cursor create_xlib_color_cursor( HDC hdc, const ICONINFOEXW *icon, int wi
     struct gdi_image_bits bits;
     unsigned int *color_bits = NULL, *ptr;
     unsigned char *mask_bits = NULL, *xor_bits = NULL;
-    int i, x, y, has_alpha = 0;
+    int i, x, y;
+    BOOL has_alpha = FALSE;
     int rfg, gfg, bfg, rbg, gbg, bbg, fgBits, bgBits;
     unsigned int width_bytes = (width + 31) / 32 * 4;
 
diff --git a/dlls/winex11.drv/window.c b/dlls/winex11.drv/window.c
index 741a303..d9265e3 100644
--- a/dlls/winex11.drv/window.c
+++ b/dlls/winex11.drv/window.c
@@ -472,7 +472,8 @@ static unsigned long *get_bitmap_argb( HDC hdc, HBITMAP color, HBITMAP mask, uns
     BITMAP bm;
     unsigned int *ptr, *bits = NULL;
     unsigned char *mask_bits = NULL;
-    int i, j, has_alpha = 0;
+    int i, j;
+    BOOL has_alpha = FALSE;
 
     if (!GetObjectW( color, sizeof(bm), &bm )) return NULL;
     info->bmiHeader.biSize = sizeof(BITMAPINFOHEADER);




More information about the wine-cvs mailing list