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
bd699e5e
Commit
bd699e5e
authored
Nov 05, 2003
by
Vincent Béron
Committed by
Alexandre Julliard
Nov 05, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented GetDCPenColor and GetDCBrushColor.
parent
636f29d8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
48 additions
and
2 deletions
+48
-2
gdi32.spec
dlls/gdi/gdi32.spec
+2
-2
dc.c
objects/dc.c
+46
-0
No files found.
dlls/gdi/gdi32.spec
View file @
bd699e5e
...
...
@@ -198,7 +198,9 @@
@ stdcall GetColorSpace(long)
@ stdcall GetCurrentObject(long long)
@ stdcall GetCurrentPositionEx(long ptr)
@ stdcall GetDCBrushColor(long)
@ stdcall GetDCOrgEx(long ptr)
@ stdcall GetDCPenColor(long)
@ stdcall GetDIBColorTable(long long long ptr)
@ stdcall GetDIBits(long long long long ptr ptr long)
@ stdcall GetDeviceCaps(long long)
...
...
@@ -412,8 +414,6 @@
@ extern pfnRealizePalette
@ extern pfnSelectPalette
@ stub pstackConnect
@ stub GetDCBrushColor #stdcall (long)
@ stub GetDCPenColor #stdcall (long)
################################################################
# Wine extensions: Win16 functions that are needed by other dlls
...
...
objects/dc.c
View file @
bd699e5e
...
...
@@ -1459,6 +1459,29 @@ DWORD WINAPI SetLayout(HDC hdc, DWORD layout)
}
/***********************************************************************
* GetDCBrushColor (GDI32.@)
*
* Retrieves the current brush color for the specified device
* context (DC).
*
*/
COLORREF
WINAPI
GetDCBrushColor
(
HDC
hdc
)
{
DC
*
dc
;
COLORREF
dcBrushColor
=
CLR_INVALID
;
TRACE
(
"hdc(%p)
\n
"
,
hdc
);
dc
=
DC_GetDCPtr
(
hdc
);
if
(
dc
)
{
dcBrushColor
=
dc
->
dcBrushColor
;
}
return
dcBrushColor
;
}
/***********************************************************************
* SetDCBrushColor (GDI32.@)
*
* Sets the current device context (DC) brush color to the specified
...
...
@@ -1499,6 +1522,29 @@ COLORREF WINAPI SetDCBrushColor(HDC hdc, COLORREF crColor)
}
/***********************************************************************
* GetDCPenColor (GDI32.@)
*
* Retrieves the current pen color for the specified device
* context (DC).
*
*/
COLORREF
WINAPI
GetDCPenColor
(
HDC
hdc
)
{
DC
*
dc
;
COLORREF
dcPenColor
=
CLR_INVALID
;
TRACE
(
"hdc(%p)
\n
"
,
hdc
);
dc
=
DC_GetDCPtr
(
hdc
);
if
(
dc
)
{
dcPenColor
=
dc
->
dcPenColor
;
}
return
dcPenColor
;
}
/***********************************************************************
* SetDCPenColor (GDI32.@)
*
* Sets the current device context (DC) pen color to the specified
...
...
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