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
9237638c
Commit
9237638c
authored
Dec 22, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Recompute the pen masks on every use to support PALETTEINDEX colors.
parent
43373c29
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
49 deletions
+35
-49
dc.c
dlls/gdi32/dibdrv/dc.c
+0
-2
dibdrv.h
dlls/gdi32/dibdrv/dibdrv.h
+2
-1
objects.c
dlls/gdi32/dibdrv/objects.c
+33
-46
No files found.
dlls/gdi32/dibdrv/dc.c
View file @
9237638c
...
...
@@ -259,13 +259,11 @@ DWORD convert_bitmapinfo( const BITMAPINFO *src_info, void *src_bits, struct bit
static
void
update_fg_colors
(
dibdrv_physdev
*
pdev
)
{
pdev
->
pen_color
=
get_pixel_color
(
pdev
,
pdev
->
pen_colorref
,
TRUE
);
pdev
->
text_color
=
get_pixel_color
(
pdev
,
GetTextColor
(
pdev
->
dev
.
hdc
),
TRUE
);
}
static
void
update_masks
(
dibdrv_physdev
*
pdev
,
INT
rop
)
{
calc_and_xor_masks
(
rop
,
pdev
->
pen_color
,
&
pdev
->
pen_and
,
&
pdev
->
pen_xor
);
update_brush_rop
(
pdev
,
rop
);
if
(
GetBkMode
(
pdev
->
dev
.
hdc
)
==
OPAQUE
)
calc_and_xor_masks
(
rop
,
pdev
->
bkgnd_color
,
&
pdev
->
bkgnd_and
,
&
pdev
->
bkgnd_xor
);
...
...
dlls/gdi32/dibdrv/dibdrv.h
View file @
9237638c
...
...
@@ -83,10 +83,11 @@ typedef struct dibdrv_physdev
/* pen */
COLORREF
pen_colorref
;
DWORD
pen_
color
,
pen_and
,
pen_xor
,
pen_
endcap
,
pen_join
;
DWORD
pen_endcap
,
pen_join
;
int
pen_width
;
dash_pattern
pen_pattern
;
dash_pos
dash_pos
;
rop_mask
dash_masks
[
2
];
BOOL
(
*
pen_lines
)(
struct
dibdrv_physdev
*
pdev
,
int
num
,
POINT
*
pts
,
BOOL
close
);
/* brush */
...
...
dlls/gdi32/dibdrv/objects.c
View file @
9237638c
This diff is collapsed.
Click to expand it.
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