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
2771fd97
Commit
2771fd97
authored
Apr 24, 2016
by
Nikolay Sivov
Committed by
Alexandre Julliard
Apr 25, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Improve DrawShadowText().
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
57271ca1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
5 deletions
+26
-5
commctrl.c
dlls/comctl32/commctrl.c
+26
-5
No files found.
dlls/comctl32/commctrl.c
View file @
2771fd97
...
@@ -1592,12 +1592,33 @@ LRESULT WINAPI SetPathWordBreakProc(HWND hwnd, BOOL bSet)
...
@@ -1592,12 +1592,33 @@ LRESULT WINAPI SetPathWordBreakProc(HWND hwnd, BOOL bSet)
*
*
* Draw text with shadow.
* Draw text with shadow.
*/
*/
int
WINAPI
DrawShadowText
(
HDC
hdc
,
LPCWSTR
pszText
,
UINT
cch
,
RECT
*
rect
,
DWORD
dwF
lags
,
int
WINAPI
DrawShadowText
(
HDC
hdc
,
LPCWSTR
text
,
UINT
length
,
RECT
*
rect
,
DWORD
f
lags
,
COLORREF
crText
,
COLORREF
crShadow
,
int
ixOffset
,
int
iyOffset
)
COLORREF
crText
,
COLORREF
crShadow
,
int
offset_x
,
int
offset_y
)
{
{
FIXME
(
"(%p, %s, %d, %p, %d, 0x%08x, 0x%08x, %d, %d): stub
\n
"
,
hdc
,
debugstr_w
(
pszText
),
cch
,
rect
,
dwFlags
,
int
bkmode
,
ret
;
crText
,
crShadow
,
ixOffset
,
iyOffset
);
COLORREF
clr
;
return
DrawTextW
(
hdc
,
pszText
,
cch
,
rect
,
DT_LEFT
);
RECT
r
;
FIXME
(
"(%p, %s, %d, %p, 0x%08x, 0x%08x, 0x%08x, %d, %d): semi-stub
\n
"
,
hdc
,
debugstr_w
(
text
),
length
,
rect
,
flags
,
crText
,
crShadow
,
offset_x
,
offset_y
);
bkmode
=
SetBkMode
(
hdc
,
TRANSPARENT
);
clr
=
SetTextColor
(
hdc
,
crShadow
);
/* FIXME: for shadow we need to render normally, blur it, and blend with current background. */
r
=
*
rect
;
OffsetRect
(
&
r
,
1
,
1
);
DrawTextW
(
hdc
,
text
,
length
,
&
r
,
flags
);
SetTextColor
(
hdc
,
crText
);
/* with text color on top of a shadow */
ret
=
DrawTextW
(
hdc
,
text
,
length
,
rect
,
flags
);
SetTextColor
(
hdc
,
clr
);
SetBkMode
(
hdc
,
bkmode
);
return
ret
;
}
}
/***********************************************************************
/***********************************************************************
...
...
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