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
b5c20159
Commit
b5c20159
authored
Mar 10, 2011
by
Vincent Povirk
Committed by
Alexandre Julliard
Mar 15, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Add software implementation of GdipFillPath.
parent
833316f9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
52 additions
and
14 deletions
+52
-14
graphics.c
dlls/gdiplus/graphics.c
+52
-14
No files found.
dlls/gdiplus/graphics.c
View file @
b5c20159
...
...
@@ -3402,24 +3402,13 @@ GpStatus WINGDIPAPI GdipFillEllipseI(GpGraphics *graphics, GpBrush *brush, INT x
return
GdipFillEllipse
(
graphics
,
brush
,(
REAL
)
x
,(
REAL
)
y
,(
REAL
)
width
,(
REAL
)
height
);
}
GpStatus
WINGDIPAPI
GdipFillPath
(
GpGraphics
*
graphics
,
GpBrush
*
brush
,
GpPath
*
path
)
static
GpStatus
GDI32_
GdipFillPath
(
GpGraphics
*
graphics
,
GpBrush
*
brush
,
GpPath
*
path
)
{
INT
save_state
;
GpStatus
retval
;
TRACE
(
"(%p, %p, %p)
\n
"
,
graphics
,
brush
,
path
);
if
(
!
brush
||
!
graphics
||
!
path
)
return
InvalidParameter
;
if
(
graphics
->
busy
)
return
ObjectBusy
;
if
(
!
graphics
->
hdc
)
{
FIXME
(
"graphics object has no HDC
\n
"
);
return
Ok
;
}
if
(
!
graphics
->
hdc
||
!
brush_can_fill_path
(
brush
))
return
NotImplemented
;
save_state
=
SaveDC
(
graphics
->
hdc
);
EndPath
(
graphics
->
hdc
);
...
...
@@ -3444,6 +3433,55 @@ end:
return
retval
;
}
static
GpStatus
SOFTWARE_GdipFillPath
(
GpGraphics
*
graphics
,
GpBrush
*
brush
,
GpPath
*
path
)
{
GpStatus
stat
;
GpRegion
*
rgn
;
if
(
!
brush_can_fill_pixels
(
brush
))
return
NotImplemented
;
/* FIXME: This could probably be done more efficiently without regions. */
stat
=
GdipCreateRegionPath
(
path
,
&
rgn
);
if
(
stat
==
Ok
)
{
stat
=
GdipFillRegion
(
graphics
,
brush
,
rgn
);
GdipDeleteRegion
(
rgn
);
}
return
stat
;
}
GpStatus
WINGDIPAPI
GdipFillPath
(
GpGraphics
*
graphics
,
GpBrush
*
brush
,
GpPath
*
path
)
{
GpStatus
stat
=
NotImplemented
;
TRACE
(
"(%p, %p, %p)
\n
"
,
graphics
,
brush
,
path
);
if
(
!
brush
||
!
graphics
||
!
path
)
return
InvalidParameter
;
if
(
graphics
->
busy
)
return
ObjectBusy
;
if
(
!
graphics
->
image
)
stat
=
GDI32_GdipFillPath
(
graphics
,
brush
,
path
);
if
(
stat
==
NotImplemented
)
stat
=
SOFTWARE_GdipFillPath
(
graphics
,
brush
,
path
);
if
(
stat
==
NotImplemented
)
{
FIXME
(
"Not implemented for brushtype %i
\n
"
,
brush
->
bt
);
stat
=
Ok
;
}
return
stat
;
}
GpStatus
WINGDIPAPI
GdipFillPie
(
GpGraphics
*
graphics
,
GpBrush
*
brush
,
REAL
x
,
REAL
y
,
REAL
width
,
REAL
height
,
REAL
startAngle
,
REAL
sweepAngle
)
{
...
...
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