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
4edff21e
Commit
4edff21e
authored
Mar 10, 2011
by
Vincent Povirk
Committed by
Alexandre Julliard
Mar 11, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Prefer to not use gdi32 for gradient and texture brushes.
parent
8a036abc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletion
+16
-1
graphics.c
dlls/gdiplus/graphics.c
+16
-1
No files found.
dlls/gdiplus/graphics.c
View file @
4edff21e
...
...
@@ -578,6 +578,21 @@ static ARGB resample_bitmap_pixel(GDIPCONST GpRect *src_rect, LPBYTE bits, UINT
}
}
static
INT
brush_can_fill_path
(
GpBrush
*
brush
)
{
switch
(
brush
->
bt
)
{
case
BrushTypeSolidColor
:
case
BrushTypeHatchFill
:
return
1
;
case
BrushTypeLinearGradient
:
case
BrushTypeTextureFill
:
/* Gdi32 isn't much help with these, so we should use brush_fill_pixels instead. */
default:
return
0
;
}
}
static
void
brush_fill_path
(
GpGraphics
*
graphics
,
GpBrush
*
brush
)
{
switch
(
brush
->
bt
)
...
...
@@ -3745,7 +3760,7 @@ static GpStatus GDI32_GdipFillRegion(GpGraphics* graphics, GpBrush* brush,
HRGN
hrgn
;
RECT
rc
;
if
(
!
graphics
->
hdc
)
if
(
!
graphics
->
hdc
||
!
brush_can_fill_path
(
brush
)
)
return
NotImplemented
;
status
=
GdipGetRegionHRgn
(
region
,
graphics
,
&
hrgn
);
...
...
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