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
61acd0dd
Commit
61acd0dd
authored
Apr 02, 2004
by
Mike McCormack
Committed by
Alexandre Julliard
Apr 02, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix bug in GdiGradientFill.
parent
8f62ecba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
painting.c
dlls/gdi/painting.c
+6
-4
No files found.
dlls/gdi/painting.c
View file @
61acd0dd
...
@@ -1074,6 +1074,8 @@ POINT *GDI_Bezier( const POINT *Points, INT count, INT *nPtsOut )
...
@@ -1074,6 +1074,8 @@ POINT *GDI_Bezier( const POINT *Points, INT count, INT *nPtsOut )
/******************************************************************************
/******************************************************************************
* GradientFill (GDI32.@)
* GradientFill (GDI32.@)
*
* FIXME: we don't support the Alpha channel properly
*/
*/
BOOL
WINAPI
GdiGradientFill
(
HDC
hdc
,
TRIVERTEX
*
vert_array
,
ULONG
nvert
,
BOOL
WINAPI
GdiGradientFill
(
HDC
hdc
,
TRIVERTEX
*
vert_array
,
ULONG
nvert
,
void
*
grad_array
,
ULONG
ngrad
,
ULONG
mode
)
void
*
grad_array
,
ULONG
ngrad
,
ULONG
mode
)
...
@@ -1111,9 +1113,9 @@ BOOL WINAPI GdiGradientFill( HDC hdc, TRIVERTEX *vert_array, ULONG nvert,
...
@@ -1111,9 +1113,9 @@ BOOL WINAPI GdiGradientFill( HDC hdc, TRIVERTEX *vert_array, ULONG nvert,
(
v1
->
Green
*
(
dx
-
x
)
+
v2
->
Green
*
x
)
/
dx
>>
8
,
(
v1
->
Green
*
(
dx
-
x
)
+
v2
->
Green
*
x
)
/
dx
>>
8
,
(
v1
->
Blue
*
(
dx
-
x
)
+
v2
->
Blue
*
x
)
/
dx
>>
8
));
(
v1
->
Blue
*
(
dx
-
x
)
+
v2
->
Blue
*
x
)
/
dx
>>
8
));
hOldPen
=
SelectObject
(
hdc
,
hPen
);
hOldPen
=
SelectObject
(
hdc
,
hPen
);
pts
[
0
].
x
=
x
;
pts
[
0
].
x
=
v1
->
x
+
x
;
pts
[
0
].
y
=
y1
;
pts
[
0
].
y
=
y1
;
pts
[
1
].
x
=
x
;
pts
[
1
].
x
=
v1
->
x
+
x
;
pts
[
1
].
y
=
y2
;
pts
[
1
].
y
=
y2
;
Polyline
(
hdc
,
&
pts
[
0
],
2
);
Polyline
(
hdc
,
&
pts
[
0
],
2
);
DeleteObject
(
SelectObject
(
hdc
,
hOldPen
)
);
DeleteObject
(
SelectObject
(
hdc
,
hOldPen
)
);
...
@@ -1147,9 +1149,9 @@ BOOL WINAPI GdiGradientFill( HDC hdc, TRIVERTEX *vert_array, ULONG nvert,
...
@@ -1147,9 +1149,9 @@ BOOL WINAPI GdiGradientFill( HDC hdc, TRIVERTEX *vert_array, ULONG nvert,
(
v1
->
Blue
*
(
dy
-
y
)
+
v2
->
Blue
*
y
)
/
dy
>>
8
));
(
v1
->
Blue
*
(
dy
-
y
)
+
v2
->
Blue
*
y
)
/
dy
>>
8
));
hOldPen
=
SelectObject
(
hdc
,
hPen
);
hOldPen
=
SelectObject
(
hdc
,
hPen
);
pts
[
0
].
x
=
x1
;
pts
[
0
].
x
=
x1
;
pts
[
0
].
y
=
y
;
pts
[
0
].
y
=
v1
->
y
+
y
;
pts
[
1
].
x
=
x2
;
pts
[
1
].
x
=
x2
;
pts
[
1
].
y
=
y
;
pts
[
1
].
y
=
v1
->
y
+
y
;
Polyline
(
hdc
,
&
pts
[
0
],
2
);
Polyline
(
hdc
,
&
pts
[
0
],
2
);
DeleteObject
(
SelectObject
(
hdc
,
hOldPen
)
);
DeleteObject
(
SelectObject
(
hdc
,
hOldPen
)
);
}
}
...
...
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