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
92859157
Commit
92859157
authored
Mar 10, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineps: Add support for SetDCBrush/PenColor.
parent
dfaee0a5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
0 deletions
+32
-0
brush.c
dlls/wineps.drv/brush.c
+17
-0
pen.c
dlls/wineps.drv/pen.c
+13
-0
wineps.drv.spec
dlls/wineps.drv/wineps.drv.spec
+2
-0
No files found.
dlls/wineps.drv/brush.c
View file @
92859157
...
...
@@ -35,6 +35,9 @@ HBRUSH CDECL PSDRV_SelectBrush( PSDRV_PDEVICE *physDev, HBRUSH hbrush )
TRACE
(
"hbrush = %p
\n
"
,
hbrush
);
if
(
hbrush
==
GetStockObject
(
DC_BRUSH
))
logbrush
.
lbColor
=
GetDCBrushColor
(
physDev
->
hdc
);
switch
(
logbrush
.
lbStyle
)
{
case
BS_SOLID
:
...
...
@@ -62,6 +65,20 @@ HBRUSH CDECL PSDRV_SelectBrush( PSDRV_PDEVICE *physDev, HBRUSH hbrush )
}
/***********************************************************************
* SetDCBrushColor (WINEPS.@)
*/
COLORREF
CDECL
PSDRV_SetDCBrushColor
(
PSDRV_PDEVICE
*
physDev
,
COLORREF
color
)
{
if
(
GetCurrentObject
(
physDev
->
hdc
,
OBJ_BRUSH
)
==
GetStockObject
(
DC_BRUSH
))
{
PSDRV_CreateColor
(
physDev
,
&
physDev
->
brush
.
color
,
color
);
physDev
->
brush
.
set
=
FALSE
;
}
return
color
;
}
/**********************************************************************
*
* PSDRV_SetBrush
...
...
dlls/wineps.drv/pen.c
View file @
92859157
...
...
@@ -69,6 +69,8 @@ HPEN CDECL PSDRV_SelectPen( PSDRV_PDEVICE *physDev, HPEN hpen )
physDev
->
pen
.
width
=
PSDRV_XWStoDS
(
physDev
,
physDev
->
pen
.
width
);
if
(
physDev
->
pen
.
width
<
0
)
physDev
->
pen
.
width
=
-
physDev
->
pen
.
width
;
}
if
(
hpen
==
GetStockObject
(
DC_PEN
))
logpen
.
lopnColor
=
GetDCPenColor
(
physDev
->
hdc
);
switch
(
logpen
.
lopnStyle
&
PS_JOIN_MASK
)
{
...
...
@@ -124,6 +126,17 @@ HPEN CDECL PSDRV_SelectPen( PSDRV_PDEVICE *physDev, HPEN hpen )
}
/***********************************************************************
* SetDCPenColor (WINEPS.@)
*/
COLORREF
CDECL
PSDRV_SetDCPenColor
(
PSDRV_PDEVICE
*
physDev
,
COLORREF
color
)
{
if
(
GetCurrentObject
(
physDev
->
hdc
,
OBJ_PEN
)
==
GetStockObject
(
DC_PEN
))
PSDRV_CreateColor
(
physDev
,
&
physDev
->
pen
.
color
,
color
);
return
color
;
}
/**********************************************************************
*
* PSDRV_SetPen
...
...
dlls/wineps.drv/wineps.drv.spec
View file @
92859157
...
...
@@ -31,6 +31,8 @@
@ cdecl SelectFont(ptr long long) PSDRV_SelectFont
@ cdecl SelectPen(ptr long) PSDRV_SelectPen
@ cdecl SetBkColor(ptr long) PSDRV_SetBkColor
@ cdecl SetDCBrushColor(ptr long) PSDRV_SetDCBrushColor
@ cdecl SetDCPenColor(ptr long) PSDRV_SetDCPenColor
@ cdecl SetDeviceClipping(ptr long long) PSDRV_SetDeviceClipping
@ cdecl SetPixel(ptr long long long) PSDRV_SetPixel
@ cdecl SetTextColor(ptr long) PSDRV_SetTextColor
...
...
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