Module: wine Branch: master Commit: 28be1f7853f01a402854dccdb9d0ee10ab8eaf91 URL: http://source.winehq.org/git/wine.git/?a=commit;h=28be1f7853f01a402854dccdb9...
Author: Frédéric Delanoy frederic.delanoy@gmail.com Date: Fri Oct 11 22:43:00 2013 +0200
gdi32: Use BOOL type where appropriate.
---
dlls/gdi32/dibdrv/opengl.c | 4 ++-- dlls/gdi32/region.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/gdi32/dibdrv/opengl.c b/dlls/gdi32/dibdrv/opengl.c index add0b01..28a03f4 100644 --- a/dlls/gdi32/dibdrv/opengl.c +++ b/dlls/gdi32/dibdrv/opengl.c @@ -98,13 +98,13 @@ static const int nb_formats = sizeof(pixel_formats) / sizeof(pixel_formats[0]);
static BOOL init_opengl(void) { - static int init_done; + static BOOL init_done = FALSE; static void *osmesa_handle; char buffer[200]; unsigned int i;
if (init_done) return (osmesa_handle != NULL); - init_done = 1; + init_done = TRUE;
osmesa_handle = wine_dlopen( SONAME_LIBOSMESA, RTLD_NOW, buffer, sizeof(buffer) ); if (osmesa_handle == NULL) diff --git a/dlls/gdi32/region.c b/dlls/gdi32/region.c index 1c31d42..062272d 100644 --- a/dlls/gdi32/region.c +++ b/dlls/gdi32/region.c @@ -2664,7 +2664,7 @@ HRGN WINAPI CreatePolyPolygonRgn(const POINT *Pts, const INT *Count, struct list AET; /* header for AET */ EdgeTableEntry *pETEs; /* EdgeTableEntries pool */ ScanLineListBlock SLLBlock; /* header for scanlinelist */ - int fixWAET = FALSE; + BOOL fixWAET = FALSE; struct point_block FirstPtBlock, *block; /* PtBlock buffers */ struct edge_table_entry *active, *next; INT poly, total;