Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
adee328a
Commit
adee328a
authored
Nov 06, 2013
by
Frédéric Delanoy
Committed by
Alexandre Julliard
Nov 07, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Use BOOL type where appropriate.
parent
4da17dbf
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
9 deletions
+9
-9
objects.c
dlls/gdi32/dibdrv/objects.c
+3
-3
objects.c
dlls/gdi32/enhmfdrv/objects.c
+1
-1
metafile.c
dlls/gdi32/metafile.c
+1
-1
opengl.c
dlls/gdi32/opengl.c
+2
-2
palette.c
dlls/gdi32/palette.c
+2
-2
No files found.
dlls/gdi32/dibdrv/objects.c
View file @
adee328a
...
...
@@ -1362,7 +1362,7 @@ static void add_join( dibdrv_physdev *pdev, HRGN region, HRGN round_cap, const P
return
;
}
static
int
wide_line_segment
(
dibdrv_physdev
*
pdev
,
HRGN
total
,
static
BOOL
wide_line_segment
(
dibdrv_physdev
*
pdev
,
HRGN
total
,
const
POINT
*
pt_1
,
const
POINT
*
pt_2
,
int
dx
,
int
dy
,
BOOL
need_cap_1
,
BOOL
need_cap_2
,
struct
face
*
face_1
,
struct
face
*
face_2
)
{
...
...
@@ -1370,7 +1370,7 @@ static int wide_line_segment( dibdrv_physdev *pdev, HRGN total,
BOOL
sq_cap_1
=
need_cap_1
&&
(
pdev
->
pen_endcap
==
PS_ENDCAP_SQUARE
);
BOOL
sq_cap_2
=
need_cap_2
&&
(
pdev
->
pen_endcap
==
PS_ENDCAP_SQUARE
);
if
(
dx
==
0
&&
dy
==
0
)
return
0
;
if
(
dx
==
0
&&
dy
==
0
)
return
FALSE
;
if
(
dy
==
0
)
{
...
...
@@ -1487,7 +1487,7 @@ static int wide_line_segment( dibdrv_physdev *pdev, HRGN total,
face_1
->
dx
=
face_2
->
dx
=
dx
;
face_1
->
dy
=
face_2
->
dy
=
dy
;
return
1
;
return
TRUE
;
}
static
void
wide_line_segments
(
dibdrv_physdev
*
pdev
,
int
num
,
const
POINT
*
pts
,
BOOL
close
,
...
...
dlls/gdi32/enhmfdrv/objects.c
View file @
adee328a
...
...
@@ -81,7 +81,7 @@ BOOL EMFDRV_DeleteObject( PHYSDEV dev, HGDIOBJ obj )
UINT
index
;
BOOL
ret
=
TRUE
;
if
(
!
(
index
=
EMFDRV_FindObject
(
dev
,
obj
)))
return
0
;
if
(
!
(
index
=
EMFDRV_FindObject
(
dev
,
obj
)))
return
FALSE
;
emr
.
emr
.
iType
=
EMR_DELETEOBJECT
;
emr
.
emr
.
nSize
=
sizeof
(
emr
);
...
...
dlls/gdi32/metafile.c
View file @
adee328a
...
...
@@ -471,7 +471,7 @@ BOOL WINAPI EnumMetaFile(HDC hdc, HMETAFILE hmf, MFENUMPROC lpEnumFunc, LPARAM l
TRACE
(
"(%p,%p,%p,%lx)
\n
"
,
hdc
,
hmf
,
lpEnumFunc
,
lpData
);
if
(
!
mh
)
return
0
;
if
(
!
mh
)
return
FALSE
;
/* save the current pen, brush and font */
hPen
=
GetCurrentObject
(
hdc
,
OBJ_PEN
);
...
...
dlls/gdi32/opengl.c
View file @
adee328a
...
...
@@ -112,7 +112,7 @@ BOOL WINAPI SetPixelFormat( HDC hdc, INT fmt, const PIXELFORMATDESCRIPTOR *pfd )
{
if
(
!
opengl32
)
opengl32
=
LoadLibraryW
(
opengl32W
);
if
(
!
(
wglSetPixelFormat
=
(
void
*
)
GetProcAddress
(
opengl32
,
"wglSetPixelFormat"
)))
return
0
;
return
FALSE
;
}
return
wglSetPixelFormat
(
hdc
,
fmt
,
pfd
);
}
...
...
@@ -126,7 +126,7 @@ BOOL WINAPI SwapBuffers( HDC hdc )
{
if
(
!
opengl32
)
opengl32
=
LoadLibraryW
(
opengl32W
);
if
(
!
(
wglSwapBuffers
=
(
void
*
)
GetProcAddress
(
opengl32
,
"wglSwapBuffers"
)))
return
0
;
return
FALSE
;
}
return
wglSwapBuffers
(
hdc
);
}
dlls/gdi32/palette.c
View file @
adee328a
...
...
@@ -319,13 +319,13 @@ BOOL WINAPI AnimatePalette(
const
PALETTEENTRY
*
pptr
=
PaletteColors
;
palPtr
=
GDI_GetObjPtr
(
hPal
,
OBJ_PAL
);
if
(
!
palPtr
)
return
0
;
if
(
!
palPtr
)
return
FALSE
;
pal_entries
=
palPtr
->
count
;
if
(
StartIndex
>=
pal_entries
)
{
GDI_ReleaseObj
(
hPal
);
return
0
;
return
FALSE
;
}
if
(
StartIndex
+
NumEntries
>
pal_entries
)
NumEntries
=
pal_entries
-
StartIndex
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment