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
aa37c179
Commit
aa37c179
authored
May 26, 2015
by
Nikolay Sivov
Committed by
Alexandre Julliard
May 27, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20: Implement SetName().
parent
43a80b80
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
+15
-3
richole.c
dlls/riched20/richole.c
+15
-3
No files found.
dlls/riched20/richole.c
View file @
aa37c179
...
...
@@ -541,7 +541,12 @@ static HRESULT set_textfont_prop(ITextFontImpl *font, enum textfont_prop_id prop
/* when font is not attached to any range use cache */
if
(
!
font
->
range
||
font
->
set_cache_enabled
)
{
font
->
props
[
propid
]
=
*
value
;
if
(
propid
==
FONT_NAME
)
{
SysFreeString
(
font
->
props
[
propid
].
str
);
font
->
props
[
propid
].
str
=
SysAllocString
(
value
->
str
);
}
else
font
->
props
[
propid
]
=
*
value
;
return
S_OK
;
}
...
...
@@ -600,6 +605,9 @@ static HRESULT set_textfont_prop(ITextFontImpl *font, enum textfont_prop_id prop
case
FONT_WEIGHT
:
fmt
.
wWeight
=
value
->
l
;
break
;
case
FONT_NAME
:
lstrcpynW
(
fmt
.
szFaceName
,
value
->
str
,
sizeof
(
fmt
.
szFaceName
)
/
sizeof
(
WCHAR
));
break
;
default:
FIXME
(
"unhandled font property %d
\n
"
,
propid
);
return
E_FAIL
;
...
...
@@ -2543,8 +2551,12 @@ static HRESULT WINAPI TextFont_GetName(ITextFont *iface, BSTR *value)
static
HRESULT
WINAPI
TextFont_SetName
(
ITextFont
*
iface
,
BSTR
value
)
{
ITextFontImpl
*
This
=
impl_from_ITextFont
(
iface
);
FIXME
(
"(%p)->(%s): stub
\n
"
,
This
,
debugstr_w
(
value
));
return
E_NOTIMPL
;
textfont_prop_val
v
;
TRACE
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_w
(
value
));
v
.
str
=
value
;
return
set_textfont_prop
(
This
,
FONT_NAME
,
&
v
);
}
static
HRESULT
WINAPI
TextFont_GetOutline
(
ITextFont
*
iface
,
LONG
*
value
)
...
...
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