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
a67b97ce
Commit
a67b97ce
authored
Sep 30, 2012
by
Nikolay Sivov
Committed by
Alexandre Julliard
Oct 01, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mlang: Move GetCharCodePages() to IMLangFontLink2 and forward to it.
parent
233fb7b3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
27 deletions
+32
-27
mlang.c
dlls/mlang/mlang.c
+32
-27
No files found.
dlls/mlang/mlang.c
View file @
a67b97ce
...
...
@@ -1828,30 +1828,11 @@ static ULONG WINAPI fnIMLangFontLink_Release(
static
HRESULT
WINAPI
fnIMLangFontLink_GetCharCodePages
(
IMLangFontLink
*
iface
,
WCHAR
ch
S
rc
,
DWORD
*
pdwCodeP
ages
)
WCHAR
ch
_s
rc
,
DWORD
*
codep
ages
)
{
int
i
;
CHAR
buf
;
BOOL
used_dc
;
DWORD
codePages
;
*
pdwCodePages
=
0
;
for
(
i
=
0
;
i
<
sizeof
(
mlang_data
)
/
sizeof
(
mlang_data
[
0
]);
i
++
)
{
WideCharToMultiByte
(
mlang_data
[
i
].
family_codepage
,
WC_NO_BEST_FIT_CHARS
,
&
chSrc
,
1
,
&
buf
,
1
,
NULL
,
&
used_dc
);
/* If default char is not used, current codepage include the given symbol */
if
(
!
used_dc
)
{
IMLangFontLink_CodePageToCodePages
(
iface
,
mlang_data
[
i
].
family_codepage
,
&
codePages
);
*
pdwCodePages
|=
codePages
;
}
}
return
S_OK
;
MLang_impl
*
This
=
impl_from_IMLangFontLink
(
iface
);
return
IMLangFontLink2_GetCharCodePages
(
&
This
->
IMLangFontLink2_iface
,
ch_src
,
codepages
);
}
static
HRESULT
WINAPI
fnIMLangFontLink_GetStrCodePages
(
...
...
@@ -3180,11 +3161,35 @@ static ULONG WINAPI fnIMLangFontLink2_Release( IMLangFontLink2* iface )
return
IMultiLanguage3_Release
(
&
This
->
IMultiLanguage3_iface
);
}
static
HRESULT
WINAPI
fnIMLangFontLink2_GetCharCodePages
(
IMLangFontLink2
*
This
,
WCHAR
ch
Src
,
DWORD
*
pdwCodeP
ages
)
static
HRESULT
WINAPI
fnIMLangFontLink2_GetCharCodePages
(
IMLangFontLink2
*
iface
,
WCHAR
ch
_src
,
DWORD
*
ret_codep
ages
)
{
FIXME
(
"(%p)->%s %p
\n
"
,
This
,
debugstr_wn
(
&
chSrc
,
1
),
pdwCodePages
);
return
E_NOTIMPL
;
MLang_impl
*
This
=
impl_from_IMLangFontLink2
(
iface
);
int
i
;
TRACE
(
"(%p)->(%s %p)
\n
"
,
This
,
debugstr_wn
(
&
ch_src
,
1
),
ret_codepages
);
*
ret_codepages
=
0
;
for
(
i
=
0
;
i
<
sizeof
(
mlang_data
)
/
sizeof
(
mlang_data
[
0
]);
i
++
)
{
BOOL
used_dc
;
CHAR
buf
;
WideCharToMultiByte
(
mlang_data
[
i
].
family_codepage
,
WC_NO_BEST_FIT_CHARS
,
&
ch_src
,
1
,
&
buf
,
1
,
NULL
,
&
used_dc
);
/* If default char is not used, current codepage include the given symbol */
if
(
!
used_dc
)
{
DWORD
codepages
;
IMLangFontLink2_CodePageToCodePages
(
iface
,
mlang_data
[
i
].
family_codepage
,
&
codepages
);
*
ret_codepages
|=
codepages
;
}
}
return
S_OK
;
}
static
HRESULT
WINAPI
fnIMLangFontLink2_GetStrCodePages
(
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