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
46e6ee48
Commit
46e6ee48
authored
Jul 24, 2017
by
Huw Davies
Committed by
Alexandre Julliard
Jul 24, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Add a helper to fill rectangles with a given pixel.
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b42a1551
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
4 deletions
+16
-4
dibdrv.h
dlls/gdi32/dibdrv/dibdrv.h
+1
-0
objects.c
dlls/gdi32/dibdrv/objects.c
+15
-4
No files found.
dlls/gdi32/dibdrv/dibdrv.h
View file @
46e6ee48
...
...
@@ -257,6 +257,7 @@ extern void add_clipped_bounds( dibdrv_physdev *dev, const RECT *rect, HRGN clip
extern
int
clip_line
(
const
POINT
*
start
,
const
POINT
*
end
,
const
RECT
*
clip
,
const
bres_params
*
params
,
POINT
*
pt1
,
POINT
*
pt2
)
DECLSPEC_HIDDEN
;
extern
void
release_cached_font
(
struct
cached_font
*
font
)
DECLSPEC_HIDDEN
;
extern
BOOL
fill_with_pixel
(
DC
*
dc
,
dib_info
*
dib
,
DWORD
pixel
,
int
num
,
const
RECT
*
rects
,
INT
rop
)
DECLSPEC_HIDDEN
;
static
inline
void
init_clipped_rects
(
struct
clipped_rects
*
clip_rects
)
{
...
...
dlls/gdi32/dibdrv/objects.c
View file @
46e6ee48
...
...
@@ -1754,6 +1754,20 @@ COLORREF dibdrv_SetDCPenColor( PHYSDEV dev, COLORREF color )
}
/**********************************************************************
* fill_with_pixel
*
* Fill a number of rectangles with a given pixel color and rop mode
*/
BOOL
fill_with_pixel
(
DC
*
dc
,
dib_info
*
dib
,
DWORD
pixel
,
int
num
,
const
RECT
*
rects
,
INT
rop
)
{
rop_mask
mask
;
calc_rop_masks
(
rop
,
pixel
,
&
mask
);
dib
->
funcs
->
solid_rects
(
dib
,
num
,
rects
,
mask
.
and
,
mask
.
xor
);
return
TRUE
;
}
/**********************************************************************
* solid_brush
*
* Fill a number of rectangles with the solid brush
...
...
@@ -1762,12 +1776,9 @@ static BOOL solid_brush(dibdrv_physdev *pdev, dib_brush *brush, dib_info *dib,
int
num
,
const
RECT
*
rects
,
INT
rop
)
{
DC
*
dc
=
get_physdev_dc
(
&
pdev
->
dev
);
rop_mask
brush_color
;
DWORD
color
=
get_pixel_color
(
dc
,
&
pdev
->
dib
,
brush
->
colorref
,
TRUE
);
calc_rop_masks
(
rop
,
color
,
&
brush_color
);
dib
->
funcs
->
solid_rects
(
dib
,
num
,
rects
,
brush_color
.
and
,
brush_color
.
xor
);
return
TRUE
;
return
fill_with_pixel
(
dc
,
dib
,
color
,
num
,
rects
,
rop
);
}
static
BOOL
alloc_brush_mask_bits
(
dib_brush
*
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