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
92205aaf
Commit
92205aaf
authored
Apr 20, 2001
by
Andreas Mohr
Committed by
Alexandre Julliard
Apr 20, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Take a stab at implementing SetSolidBrush16.
parent
641405a5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
4 deletions
+17
-4
brush.c
objects/brush.c
+17
-4
No files found.
objects/brush.c
View file @
92205aaf
...
...
@@ -400,16 +400,29 @@ INT BRUSH_GetObject( BRUSHOBJ * brush, INT count, LPSTR buffer )
/***********************************************************************
* SetSolidBrush16 (GDI.604)
*
* If hBrush is a solid brush, change it
'
s color to newColor.
* If hBrush is a solid brush, change its color to newColor.
*
* RETURNS
* TRUE on success, FALSE on failure.
* FIXME: not yet implemented!
*
* FIXME: untested, not sure if correct.
*/
BOOL16
WINAPI
SetSolidBrush16
(
HBRUSH16
hBrush
,
COLORREF
newColor
)
{
FIXME
(
"(hBrush %04x, newColor %04x): stub!
\n
"
,
hBrush
,
(
int
)
newColor
);
BRUSHOBJ
*
brushPtr
;
BOOL16
res
=
FALSE
;
TRACE
(
"(hBrush %04x, newColor %08lx)
\n
"
,
hBrush
,
(
DWORD
)
newColor
);
if
(
!
(
brushPtr
=
(
BRUSHOBJ
*
)
GDI_GetObjPtr
(
hBrush
,
BRUSH_MAGIC
)))
return
FALSE
;
if
(
brushPtr
->
logbrush
.
lbStyle
==
BS_SOLID
)
{
brushPtr
->
logbrush
.
lbColor
=
newColor
;
res
=
TRUE
;
}
return
(
FALSE
);
GDI_ReleaseObj
(
hBrush
);
return
res
;
}
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