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
70bc6d5f
Commit
70bc6d5f
authored
Oct 03, 2013
by
Frédéric Delanoy
Committed by
Alexandre Julliard
Oct 03, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Use BOOL type where appropriate.
parent
baf491b8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
graphics.c
dlls/gdiplus/graphics.c
+7
-7
No files found.
dlls/gdiplus/graphics.c
View file @
70bc6d5f
...
...
@@ -621,7 +621,7 @@ static ARGB transform_color(ARGB color, const ColorMatrix *matrix)
return
(
a
<<
24
)
|
(
r
<<
16
)
|
(
g
<<
8
)
|
b
;
}
static
int
color_is_gray
(
ARGB
color
)
static
BOOL
color_is_gray
(
ARGB
color
)
{
unsigned
char
r
,
g
,
b
;
...
...
@@ -944,12 +944,12 @@ static REAL intersect_line_scanline(const GpPointF *p1, const GpPointF *p2, REAL
return
(
p1
->
X
-
p2
->
X
)
*
(
p2
->
Y
-
y
)
/
(
p2
->
Y
-
p1
->
Y
)
+
p2
->
X
;
}
static
INT
brush_can_fill_path
(
GpBrush
*
brush
)
static
BOOL
brush_can_fill_path
(
GpBrush
*
brush
)
{
switch
(
brush
->
bt
)
{
case
BrushTypeSolidColor
:
return
1
;
return
TRUE
;
case
BrushTypeHatchFill
:
{
GpHatch
*
hatch
=
(
GpHatch
*
)
brush
;
...
...
@@ -960,7 +960,7 @@ static INT brush_can_fill_path(GpBrush *brush)
case
BrushTypeTextureFill
:
/* Gdi32 isn't much help with these, so we should use brush_fill_pixels instead. */
default:
return
0
;
return
FALSE
;
}
}
...
...
@@ -1012,7 +1012,7 @@ static void brush_fill_path(GpGraphics *graphics, GpBrush* brush)
}
}
static
INT
brush_can_fill_pixels
(
GpBrush
*
brush
)
static
BOOL
brush_can_fill_pixels
(
GpBrush
*
brush
)
{
switch
(
brush
->
bt
)
{
...
...
@@ -1021,9 +1021,9 @@ static INT brush_can_fill_pixels(GpBrush *brush)
case
BrushTypeLinearGradient
:
case
BrushTypeTextureFill
:
case
BrushTypePathGradient
:
return
1
;
return
TRUE
;
default:
return
0
;
return
FALSE
;
}
}
...
...
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