winex11.drv: Use BOOL type where appropriate.
This commit is contained in:
parent
8610acde5c
commit
ff7fc1fd45
|
@ -623,7 +623,8 @@ static XcursorImage *create_xcursor_frame( HDC hdc, const ICONINFOEXW *iinfo, HA
|
||||||
{
|
{
|
||||||
XcursorImage *image, *ret = NULL;
|
XcursorImage *image, *ret = NULL;
|
||||||
DWORD delay_jiffies, num_steps;
|
DWORD delay_jiffies, num_steps;
|
||||||
int x, y, i, has_alpha = FALSE;
|
int x, y, i;
|
||||||
|
BOOL has_alpha = FALSE;
|
||||||
XcursorPixel *ptr;
|
XcursorPixel *ptr;
|
||||||
|
|
||||||
image = pXcursorImageCreate( width, height );
|
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;
|
struct gdi_image_bits bits;
|
||||||
unsigned int *color_bits = NULL, *ptr;
|
unsigned int *color_bits = NULL, *ptr;
|
||||||
unsigned char *mask_bits = NULL, *xor_bits = NULL;
|
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;
|
int rfg, gfg, bfg, rbg, gbg, bbg, fgBits, bgBits;
|
||||||
unsigned int width_bytes = (width + 31) / 32 * 4;
|
unsigned int width_bytes = (width + 31) / 32 * 4;
|
||||||
|
|
||||||
|
|
|
@ -472,7 +472,8 @@ static unsigned long *get_bitmap_argb( HDC hdc, HBITMAP color, HBITMAP mask, uns
|
||||||
BITMAP bm;
|
BITMAP bm;
|
||||||
unsigned int *ptr, *bits = NULL;
|
unsigned int *ptr, *bits = NULL;
|
||||||
unsigned char *mask_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;
|
if (!GetObjectW( color, sizeof(bm), &bm )) return NULL;
|
||||||
info->bmiHeader.biSize = sizeof(BITMAPINFOHEADER);
|
info->bmiHeader.biSize = sizeof(BITMAPINFOHEADER);
|
||||||
|
|
Loading…
Reference in New Issue