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
488bf107
Commit
488bf107
authored
Dec 30, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Implement brushed pens.
parent
4e032474
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
2 deletions
+8
-2
dc.c
dlls/gdi32/dibdrv/dc.c
+7
-1
dibdrv.h
dlls/gdi32/dibdrv/dibdrv.h
+1
-1
objects.c
dlls/gdi32/dibdrv/objects.c
+0
-0
No files found.
dlls/gdi32/dibdrv/dc.c
View file @
488bf107
...
...
@@ -309,6 +309,7 @@ static BOOL dibdrv_CreateDC( PHYSDEV *dev, LPCWSTR driver, LPCWSTR device,
if
(
!
pdev
)
return
FALSE
;
clear_dib_info
(
&
pdev
->
dib
);
clear_dib_info
(
&
pdev
->
brush
.
dib
);
clear_dib_info
(
&
pdev
->
pen_brush
.
dib
);
push_dc_driver
(
dev
,
&
pdev
->
dev
,
&
dib_driver
);
return
TRUE
;
}
...
...
@@ -321,6 +322,7 @@ static BOOL dibdrv_DeleteDC( PHYSDEV dev )
dibdrv_physdev
*
pdev
=
get_dibdrv_pdev
(
dev
);
TRACE
(
"(%p)
\n
"
,
dev
);
free_pattern_brush
(
&
pdev
->
brush
);
free_pattern_brush
(
&
pdev
->
pen_brush
);
HeapFree
(
GetProcessHeap
(),
0
,
pdev
);
return
TRUE
;
}
...
...
@@ -389,7 +391,11 @@ static UINT dibdrv_SetDIBColorTable( PHYSDEV dev, UINT pos, UINT count, const RG
dibdrv_physdev
*
pdev
=
get_dibdrv_pdev
(
dev
);
TRACE
(
"(%p, %d, %d, %p)
\n
"
,
dev
,
pos
,
count
,
colors
);
if
(
pdev
->
dib
.
color_table
)
pdev
->
brush
.
rop
=
-
1
;
/* force re-creating the brush bits */
if
(
pdev
->
dib
.
color_table
)
/* force re-creating the brush bits */
{
pdev
->
brush
.
rop
=
-
1
;
pdev
->
pen_brush
.
rop
=
-
1
;
}
return
next
->
funcs
->
pSetDIBColorTable
(
next
,
pos
,
count
,
colors
);
}
...
...
dlls/gdi32/dibdrv/dibdrv.h
View file @
488bf107
...
...
@@ -99,10 +99,10 @@ typedef struct dibdrv_physdev
DWORD
defer
;
/* pen */
COLORREF
pen_colorref
;
DWORD
pen_style
,
pen_endcap
,
pen_join
;
BOOL
pen_uses_region
,
pen_is_ext
;
int
pen_width
;
dib_brush
pen_brush
;
dash_pattern
pen_pattern
;
dash_pos
dash_pos
;
rop_mask
dash_masks
[
2
];
...
...
dlls/gdi32/dibdrv/objects.c
View file @
488bf107
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