Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
540d1459
Commit
540d1459
authored
Jan 28, 2014
by
André Hentschel
Committed by
Alexandre Julliard
Jan 30, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Use boolean return values in boolean functions.
parent
e0c5dfdf
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
17 additions
and
17 deletions
+17
-17
dc.c
dlls/gdi32/enhmfdrv/dc.c
+7
-7
objects.c
dlls/gdi32/enhmfdrv/objects.c
+1
-1
font.c
dlls/gdi32/font.c
+2
-2
gdiobj.c
dlls/gdi32/gdiobj.c
+4
-4
objects.c
dlls/gdi32/mfdrv/objects.c
+1
-1
palette.c
dlls/gdi32/palette.c
+2
-2
No files found.
dlls/gdi32/enhmfdrv/dc.c
View file @
540d1459
...
...
@@ -262,7 +262,7 @@ BOOL EMFDRV_SetWindowExtEx( PHYSDEV dev, INT cx, INT cy, SIZE *size )
emr
.
szlExtent
.
cx
=
cx
;
emr
.
szlExtent
.
cy
=
cy
;
if
(
!
EMFDRV_WriteRecord
(
dev
,
&
emr
.
emr
))
return
0
;
if
(
!
EMFDRV_WriteRecord
(
dev
,
&
emr
.
emr
))
return
FALSE
;
return
next
->
funcs
->
pSetWindowExtEx
(
next
,
cx
,
cy
,
size
);
}
...
...
@@ -276,7 +276,7 @@ BOOL EMFDRV_SetViewportOrgEx( PHYSDEV dev, INT x, INT y, POINT *pt )
emr
.
ptlOrigin
.
x
=
x
;
emr
.
ptlOrigin
.
y
=
y
;
if
(
!
EMFDRV_WriteRecord
(
dev
,
&
emr
.
emr
))
return
0
;
if
(
!
EMFDRV_WriteRecord
(
dev
,
&
emr
.
emr
))
return
FALSE
;
return
next
->
funcs
->
pSetViewportOrgEx
(
next
,
x
,
y
,
pt
);
}
...
...
@@ -290,7 +290,7 @@ BOOL EMFDRV_SetWindowOrgEx( PHYSDEV dev, INT x, INT y, POINT *pt )
emr
.
ptlOrigin
.
x
=
x
;
emr
.
ptlOrigin
.
y
=
y
;
if
(
!
EMFDRV_WriteRecord
(
dev
,
&
emr
.
emr
))
return
0
;
if
(
!
EMFDRV_WriteRecord
(
dev
,
&
emr
.
emr
))
return
FALSE
;
return
next
->
funcs
->
pSetWindowOrgEx
(
next
,
x
,
y
,
pt
);
}
...
...
@@ -306,7 +306,7 @@ BOOL EMFDRV_ScaleViewportExtEx( PHYSDEV dev, INT xNum, INT xDenom, INT yNum, INT
emr
.
yNum
=
yNum
;
emr
.
yDenom
=
yDenom
;
if
(
!
EMFDRV_WriteRecord
(
dev
,
&
emr
.
emr
))
return
0
;
if
(
!
EMFDRV_WriteRecord
(
dev
,
&
emr
.
emr
))
return
FALSE
;
return
next
->
funcs
->
pScaleViewportExtEx
(
next
,
xNum
,
xDenom
,
yNum
,
yDenom
,
size
);
}
...
...
@@ -322,7 +322,7 @@ BOOL EMFDRV_ScaleWindowExtEx( PHYSDEV dev, INT xNum, INT xDenom, INT yNum, INT y
emr
.
yNum
=
yNum
;
emr
.
yDenom
=
yDenom
;
if
(
!
EMFDRV_WriteRecord
(
dev
,
&
emr
.
emr
))
return
0
;
if
(
!
EMFDRV_WriteRecord
(
dev
,
&
emr
.
emr
))
return
FALSE
;
return
next
->
funcs
->
pScaleWindowExtEx
(
next
,
xNum
,
xDenom
,
yNum
,
yDenom
,
size
);
}
...
...
@@ -376,7 +376,7 @@ BOOL EMFDRV_OffsetViewportOrgEx( PHYSDEV dev, INT x, INT y, POINT *pt )
emr
.
ptlOrigin
.
x
=
prev
.
x
+
x
;
emr
.
ptlOrigin
.
y
=
prev
.
y
+
y
;
if
(
!
EMFDRV_WriteRecord
(
dev
,
&
emr
.
emr
))
return
0
;
if
(
!
EMFDRV_WriteRecord
(
dev
,
&
emr
.
emr
))
return
FALSE
;
return
next
->
funcs
->
pOffsetViewportOrgEx
(
next
,
x
,
y
,
pt
);
}
...
...
@@ -393,7 +393,7 @@ BOOL EMFDRV_OffsetWindowOrgEx( PHYSDEV dev, INT x, INT y, POINT *pt )
emr
.
ptlOrigin
.
x
=
prev
.
x
+
x
;
emr
.
ptlOrigin
.
y
=
prev
.
y
+
y
;
if
(
!
EMFDRV_WriteRecord
(
dev
,
&
emr
.
emr
))
return
0
;
if
(
!
EMFDRV_WriteRecord
(
dev
,
&
emr
.
emr
))
return
FALSE
;
return
next
->
funcs
->
pOffsetWindowOrgEx
(
next
,
x
,
y
,
pt
);
}
...
...
dlls/gdi32/enhmfdrv/objects.c
View file @
540d1459
...
...
@@ -243,7 +243,7 @@ static BOOL EMFDRV_CreateFontIndirect(PHYSDEV dev, HFONT hFont )
EMREXTCREATEFONTINDIRECTW
emr
;
int
i
;
if
(
!
GetObjectW
(
hFont
,
sizeof
(
emr
.
elfw
.
elfLogFont
),
&
emr
.
elfw
.
elfLogFont
))
return
0
;
if
(
!
GetObjectW
(
hFont
,
sizeof
(
emr
.
elfw
.
elfLogFont
),
&
emr
.
elfw
.
elfLogFont
))
return
FALSE
;
emr
.
emr
.
iType
=
EMR_EXTCREATEFONTINDIRECTW
;
emr
.
emr
.
nSize
=
(
sizeof
(
emr
)
+
3
)
/
4
*
4
;
...
...
dlls/gdi32/font.c
View file @
540d1459
...
...
@@ -3378,7 +3378,7 @@ BOOL WINAPI GetCharWidthFloatA(HDC hdc, UINT iFirstChar,
UINT
iLastChar
,
PFLOAT
pxBuffer
)
{
FIXME
(
"%p, %u, %u, %p: stub!
\n
"
,
hdc
,
iFirstChar
,
iLastChar
,
pxBuffer
);
return
0
;
return
FALSE
;
}
/*************************************************************************
...
...
@@ -3388,7 +3388,7 @@ BOOL WINAPI GetCharWidthFloatW(HDC hdc, UINT iFirstChar,
UINT
iLastChar
,
PFLOAT
pxBuffer
)
{
FIXME
(
"%p, %u, %u, %p: stub!
\n
"
,
hdc
,
iFirstChar
,
iLastChar
,
pxBuffer
);
return
0
;
return
FALSE
;
}
...
...
dlls/gdi32/gdiobj.c
View file @
540d1459
...
...
@@ -1325,8 +1325,8 @@ DWORD WINAPI GdiSetBatchLimit( DWORD limit )
*/
BOOL
WINAPI
GetColorAdjustment
(
HDC
hdc
,
LPCOLORADJUSTMENT
lpca
)
{
FIXME
(
"stub
\n
"
);
return
0
;
FIXME
(
"stub
\n
"
);
return
FALSE
;
}
/*******************************************************************
...
...
@@ -1355,6 +1355,6 @@ BOOL WINAPI GdiComment(HDC hdc, UINT cbSize, const BYTE *lpData)
*/
BOOL
WINAPI
SetColorAdjustment
(
HDC
hdc
,
const
COLORADJUSTMENT
*
lpca
)
{
FIXME
(
"stub
\n
"
);
return
0
;
FIXME
(
"stub
\n
"
);
return
FALSE
;
}
dlls/gdi32/mfdrv/objects.c
View file @
540d1459
...
...
@@ -104,7 +104,7 @@ BOOL MFDRV_DeleteObject( PHYSDEV dev, HGDIOBJ obj )
index
=
MFDRV_FindObject
(
dev
,
obj
);
if
(
index
<
0
)
return
0
;
return
FALSE
;
mr
.
rdSize
=
sizeof
mr
/
2
;
mr
.
rdFunction
=
META_DELETEOBJECT
;
...
...
dlls/gdi32/palette.c
View file @
540d1459
...
...
@@ -703,7 +703,7 @@ BOOL WINAPI UpdateColors(
HMODULE
mod
;
int
size
=
GetDeviceCaps
(
hDC
,
SIZEPALETTE
);
if
(
!
size
)
return
0
;
if
(
!
size
)
return
FALSE
;
mod
=
GetModuleHandleA
(
"user32.dll"
);
if
(
mod
)
...
...
@@ -723,7 +723,7 @@ BOOL WINAPI UpdateColors(
}
}
}
return
0x666
;
return
TRUE
;
}
/*********************************************************************
...
...
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