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
4ce9b42c
Commit
4ce9b42c
authored
Apr 26, 2008
by
ByeongSik Jeon
Committed by
Alexandre Julliard
Apr 28, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
imm32: Updated implementation of the Imm{Get|Set}CompositionFont{A|W}.
parent
b322bc68
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
9 deletions
+11
-9
imm.c
dlls/imm32/imm.c
+11
-9
No files found.
dlls/imm32/imm.c
View file @
4ce9b42c
...
...
@@ -774,13 +774,13 @@ BOOL WINAPI ImmGetCompositionFontA(HIMC hIMC, LPLOGFONTA lplf)
TRACE
(
"(%p, %p):
\n
"
,
hIMC
,
lplf
);
rc
=
ImmGetCompositionFontW
(
hIMC
,
&
lfW
);
if
(
rc
)
{
memcpy
(
lplf
,
&
lfW
,
sizeof
(
LOGFONTA
));
WideCharToMultiByte
(
CP_ACP
,
0
,
lfW
.
lfFaceName
,
-
1
,
lplf
->
lfFaceName
,
if
(
!
rc
||
!
lplf
)
return
FALSE
;
memcpy
(
lplf
,
&
lfW
,
sizeof
(
LOGFONTA
));
WideCharToMultiByte
(
CP_ACP
,
0
,
lfW
.
lfFaceName
,
-
1
,
lplf
->
lfFaceName
,
LF_FACESIZE
,
NULL
,
NULL
);
}
return
rc
;
return
TRUE
;
}
/***********************************************************************
...
...
@@ -792,7 +792,7 @@ BOOL WINAPI ImmGetCompositionFontW(HIMC hIMC, LPLOGFONTW lplf)
TRACE
(
"(%p, %p):
\n
"
,
hIMC
,
lplf
);
if
(
!
data
)
if
(
!
data
||
!
lplf
)
return
FALSE
;
*
lplf
=
data
->
IMC
.
lfFont
.
W
;
...
...
@@ -1658,12 +1658,13 @@ BOOL WINAPI ImmSetCompositionFontA(HIMC hIMC, LPLOGFONTA lplf)
InputContextData
*
data
=
(
InputContextData
*
)
hIMC
;
TRACE
(
"(%p, %p)
\n
"
,
hIMC
,
lplf
);
if
(
!
data
)
if
(
!
data
||
!
lplf
)
return
FALSE
;
memcpy
(
&
data
->
IMC
.
lfFont
.
W
,
lplf
,
sizeof
(
LOGFONTA
));
MultiByteToWideChar
(
CP_ACP
,
0
,
lplf
->
lfFaceName
,
-
1
,
data
->
IMC
.
lfFont
.
W
.
lfFaceName
,
LF_FACESIZE
);
ImmNotifyIME
(
hIMC
,
NI_CONTEXTUPDATED
,
0
,
IMC_SETCOMPOSITIONFONT
);
ImmInternalSendIMENotify
(
data
,
IMN_SETCOMPOSITIONFONT
,
0
);
return
TRUE
;
...
...
@@ -1677,10 +1678,11 @@ BOOL WINAPI ImmSetCompositionFontW(HIMC hIMC, LPLOGFONTW lplf)
InputContextData
*
data
=
(
InputContextData
*
)
hIMC
;
TRACE
(
"(%p, %p)
\n
"
,
hIMC
,
lplf
);
if
(
!
data
)
if
(
!
data
||
!
lplf
)
return
FALSE
;
data
->
IMC
.
lfFont
.
W
=
*
lplf
;
ImmNotifyIME
(
hIMC
,
NI_CONTEXTUPDATED
,
0
,
IMC_SETCOMPOSITIONFONT
);
ImmInternalSendIMENotify
(
data
,
IMN_SETCOMPOSITIONFONT
,
0
);
return
TRUE
;
...
...
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