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
aaee4d7f
Commit
aaee4d7f
authored
May 07, 2009
by
Vincent Povirk
Committed by
Alexandre Julliard
May 08, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Store the rect passed to GdipCreateLineBrushFromRect.
parent
173a1f6f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
5 deletions
+11
-5
brush.c
dlls/gdiplus/brush.c
+7
-1
brush.c
dlls/gdiplus/tests/brush.c
+4
-4
No files found.
dlls/gdiplus/brush.c
View file @
aaee4d7f
...
...
@@ -301,6 +301,7 @@ GpStatus WINGDIPAPI GdipCreateLineBrushFromRect(GDIPCONST GpRectF* rect,
GpLineGradient
**
line
)
{
GpPointF
start
,
end
;
GpStatus
stat
;
TRACE
(
"(%p, %x, %x, %d, %d, %p)
\n
"
,
rect
,
startcolor
,
endcolor
,
mode
,
wrap
,
line
);
...
...
@@ -313,7 +314,12 @@ GpStatus WINGDIPAPI GdipCreateLineBrushFromRect(GDIPCONST GpRectF* rect,
end
.
X
=
rect
->
X
+
rect
->
Width
;
end
.
Y
=
rect
->
Y
+
rect
->
Height
;
return
GdipCreateLineBrush
(
&
start
,
&
end
,
startcolor
,
endcolor
,
wrap
,
line
);
stat
=
GdipCreateLineBrush
(
&
start
,
&
end
,
startcolor
,
endcolor
,
wrap
,
line
);
if
(
stat
==
Ok
)
(
*
line
)
->
rect
=
*
rect
;
return
stat
;
}
GpStatus
WINGDIPAPI
GdipCreateLineBrushFromRectI
(
GDIPCONST
GpRect
*
rect
,
...
...
dlls/gdiplus/tests/brush.c
View file @
aaee4d7f
...
...
@@ -379,10 +379,10 @@ static void test_gradientgetrect(void)
memset
(
&
rectf
,
0
,
sizeof
(
GpRectF
));
status
=
GdipGetLineRect
(
brush
,
&
rectf
);
expect
(
Ok
,
status
);
todo_wine
expectf
(
10
.
0
,
rectf
.
X
);
todo_wine
expectf
(
10
.
0
,
rectf
.
Y
);
todo_wine
expectf
(
-
100
.
0
,
rectf
.
Width
);
todo_wine
expectf
(
-
100
.
0
,
rectf
.
Height
);
expectf
(
10
.
0
,
rectf
.
X
);
expectf
(
10
.
0
,
rectf
.
Y
);
expectf
(
-
100
.
0
,
rectf
.
Width
);
expectf
(
-
100
.
0
,
rectf
.
Height
);
status
=
GdipDeleteBrush
((
GpBrush
*
)
brush
);
}
...
...
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