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
b7eb9c23
Commit
b7eb9c23
authored
Sep 27, 2012
by
Nikolay Sivov
Committed by
Alexandre Julliard
Sep 28, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mlang: Move GetFontCodePages() code to IMLangFontLink2 and forward to it.
parent
d442f5ff
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
21 deletions
+21
-21
mlang.c
dlls/mlang/mlang.c
+21
-21
No files found.
dlls/mlang/mlang.c
View file @
b7eb9c23
...
...
@@ -1972,24 +1972,12 @@ static HRESULT WINAPI fnIMLangFontLink_CodePagesToCodePage(
static
HRESULT
WINAPI
fnIMLangFontLink_GetFontCodePages
(
IMLangFontLink
*
iface
,
HDC
h
DC
,
HFONT
h
F
ont
,
DWORD
*
pdwCodeP
ages
)
HDC
h
dc
,
HFONT
h
f
ont
,
DWORD
*
codep
ages
)
{
HFONT
old_font
;
FONTSIGNATURE
fontsig
;
MLang_impl
*
This
=
impl_from_IMLangFontLink
(
iface
);
TRACE
(
"(%p)
\n
"
,
This
);
old_font
=
SelectObject
(
hDC
,
hFont
);
GetTextCharsetInfo
(
hDC
,
&
fontsig
,
0
);
SelectObject
(
hDC
,
old_font
);
*
pdwCodePages
=
fontsig
.
fsCsb
[
0
];
TRACE
(
"CodePages is 0x%x
\n
"
,
fontsig
.
fsCsb
[
0
]);
return
S_OK
;
MLang_impl
*
This
=
impl_from_IMLangFontLink
(
iface
);
return
IMLangFontLink2_GetFontCodePages
(
&
This
->
IMLangFontLink2_iface
,
hdc
,
hfont
,
codepages
);
}
static
HRESULT
WINAPI
fnIMLangFontLink_MapFont
(
...
...
@@ -3279,11 +3267,23 @@ static HRESULT WINAPI fnIMLangFontLink2_CodePagesToCodePage(IMLangFontLink2* Thi
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
fnIMLangFontLink2_GetFontCodePages
(
IMLangFontLink2
*
This
,
HDC
h
DC
,
HFONT
hFont
,
DWORD
*
pdwCodeP
ages
)
static
HRESULT
WINAPI
fnIMLangFontLink2_GetFontCodePages
(
IMLangFontLink2
*
iface
,
HDC
h
dc
,
HFONT
hfont
,
DWORD
*
codep
ages
)
{
FIXME
(
"(%p)->%p %p %p
\n
"
,
This
,
hDC
,
hFont
,
pdwCodePages
);
return
E_NOTIMPL
;
MLang_impl
*
This
=
impl_from_IMLangFontLink2
(
iface
);
FONTSIGNATURE
fontsig
;
HFONT
old_font
;
TRACE
(
"(%p)->(%p %p %p)
\n
"
,
This
,
hdc
,
hfont
,
codepages
);
old_font
=
SelectObject
(
hdc
,
hfont
);
GetTextCharsetInfo
(
hdc
,
&
fontsig
,
0
);
SelectObject
(
hdc
,
old_font
);
*
codepages
=
fontsig
.
fsCsb
[
0
];
TRACE
(
"ret 0x%x
\n
"
,
fontsig
.
fsCsb
[
0
]);
return
S_OK
;
}
static
HRESULT
WINAPI
fnIMLangFontLink2_ReleaseFont
(
IMLangFontLink2
*
This
,
...
...
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