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
b689e63a
Commit
b689e63a
authored
Jan 21, 2011
by
Vincent Povirk
Committed by
Alexandre Julliard
Jan 24, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Factor out the gdi32 code of GdipFillRegion.
parent
f0296a81
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
17 deletions
+30
-17
graphics.c
dlls/gdiplus/graphics.c
+30
-17
No files found.
dlls/gdiplus/graphics.c
View file @
b689e63a
...
...
@@ -3282,30 +3282,16 @@ GpStatus WINGDIPAPI GdipFillRectanglesI(GpGraphics *graphics, GpBrush *brush, GD
return
ret
;
}
/*****************************************************************************
* GdipFillRegion [GDIPLUS.@]
*/
GpStatus
WINGDIPAPI
GdipFillRegion
(
GpGraphics
*
graphics
,
GpBrush
*
brush
,
GpRegion
*
region
)
static
GpStatus
GDI32_GdipFillRegion
(
GpGraphics
*
graphics
,
GpBrush
*
brush
,
GpRegion
*
region
)
{
INT
save_state
;
GpStatus
status
;
HRGN
hrgn
;
RECT
rc
;
TRACE
(
"(%p, %p, %p)
\n
"
,
graphics
,
brush
,
region
);
if
(
!
(
graphics
&&
brush
&&
region
))
return
InvalidParameter
;
if
(
graphics
->
busy
)
return
ObjectBusy
;
if
(
!
graphics
->
hdc
)
{
FIXME
(
"graphics object has no HDC
\n
"
);
return
Ok
;
}
return
NotImplemented
;
status
=
GdipGetRegionHRgn
(
region
,
graphics
,
&
hrgn
);
if
(
status
!=
Ok
)
...
...
@@ -3332,6 +3318,33 @@ GpStatus WINGDIPAPI GdipFillRegion(GpGraphics* graphics, GpBrush* brush,
return
Ok
;
}
/*****************************************************************************
* GdipFillRegion [GDIPLUS.@]
*/
GpStatus
WINGDIPAPI
GdipFillRegion
(
GpGraphics
*
graphics
,
GpBrush
*
brush
,
GpRegion
*
region
)
{
GpStatus
stat
;
TRACE
(
"(%p, %p, %p)
\n
"
,
graphics
,
brush
,
region
);
if
(
!
(
graphics
&&
brush
&&
region
))
return
InvalidParameter
;
if
(
graphics
->
busy
)
return
ObjectBusy
;
stat
=
GDI32_GdipFillRegion
(
graphics
,
brush
,
region
);
if
(
stat
==
NotImplemented
)
{
FIXME
(
"partially implemented
\n
"
);
stat
=
Ok
;
}
return
stat
;
}
GpStatus
WINGDIPAPI
GdipFlush
(
GpGraphics
*
graphics
,
GpFlushIntention
intention
)
{
TRACE
(
"(%p,%u)
\n
"
,
graphics
,
intention
);
...
...
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