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
54bbdb83
Commit
54bbdb83
authored
May 11, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
May 12, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winemac: Use the ImeToAsciiEx driver entry to retrieve IME result.
parent
bfa19f8c
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
6 additions
and
46 deletions
+6
-46
event.c
dlls/winemac.drv/event.c
+4
-2
gdi.c
dlls/winemac.drv/gdi.c
+1
-0
ime.c
dlls/winemac.drv/ime.c
+0
-39
macdrv.h
dlls/winemac.drv/macdrv.h
+1
-1
macdrv_main.c
dlls/winemac.drv/macdrv_main.c
+0
-2
unixlib.h
dlls/winemac.drv/unixlib.h
+0
-1
winemac.drv.spec
dlls/winemac.drv/winemac.drv.spec
+0
-1
No files found.
dlls/winemac.drv/event.c
View file @
54bbdb83
...
...
@@ -205,10 +205,12 @@ static void macdrv_sent_text_input(const macdrv_event *event)
/***********************************************************************
*
macdrv_ime_get_text_input
*
ImeToAsciiEx (MACDRV.@)
*/
NTSTATUS
macdrv_ime_get_text_input
(
void
*
arg
)
UINT
macdrv_ImeToAsciiEx
(
UINT
vkey
,
UINT
vsc
,
const
BYTE
*
state
,
COMPOSITIONSTRING
*
compstr
,
HIMC
himc
)
{
TRACE_
(
imm
)(
"vkey %#x, vsc %#x, state %p, compstr %p, himc %p
\n
"
,
vkey
,
vsc
,
state
,
compstr
,
himc
);
if
(
ime_update
.
result_params
)
{
macdrv_client_func
(
client_func_ime_set_text
,
ime_update
.
result_params
,
ime_update
.
result_size
);
...
...
dlls/winemac.drv/gdi.c
View file @
54bbdb83
...
...
@@ -303,6 +303,7 @@ static const struct user_driver_funcs macdrv_funcs =
.
pUpdateLayeredWindow
=
macdrv_UpdateLayeredWindow
,
.
pVkKeyScanEx
=
macdrv_VkKeyScanEx
,
.
pImeProcessKey
=
macdrv_ImeProcessKey
,
.
pImeToAsciiEx
=
macdrv_ImeToAsciiEx
,
.
pNotifyIMEStatus
=
macdrv_NotifyIMEStatus
,
.
pWindowMessage
=
macdrv_WindowMessage
,
.
pWindowPosChanged
=
macdrv_WindowPosChanged
,
...
...
dlls/winemac.drv/ime.c
View file @
54bbdb83
...
...
@@ -483,26 +483,6 @@ static void IME_AddToSelected(HIMC hIMC)
hSelectedFrom
[
hSelectedCount
-
1
]
=
hIMC
;
}
static
void
UpdateDataInDefaultIMEWindow
(
INPUTCONTEXT
*
lpIMC
,
HWND
hwnd
,
BOOL
showable
)
{
LPCOMPOSITIONSTRING
compstr
;
if
(
lpIMC
->
hCompStr
)
compstr
=
ImmLockIMCC
(
lpIMC
->
hCompStr
);
else
compstr
=
NULL
;
if
(
compstr
==
NULL
||
compstr
->
dwCompStrLen
==
0
)
ShowWindow
(
hwnd
,
SW_HIDE
);
else
if
(
showable
)
ShowWindow
(
hwnd
,
SW_SHOWNOACTIVATE
);
RedrawWindow
(
hwnd
,
NULL
,
NULL
,
RDW_ERASENOW
|
RDW_INVALIDATE
);
if
(
compstr
!=
NULL
)
ImmUnlockIMCC
(
lpIMC
->
hCompStr
);
}
BOOL
WINAPI
ImeSelect
(
HIMC
hIMC
,
BOOL
fSelect
)
{
LPINPUTCONTEXT
lpIMC
;
...
...
@@ -544,25 +524,6 @@ BOOL WINAPI ImeSelect(HIMC hIMC, BOOL fSelect)
return
TRUE
;
}
UINT
WINAPI
ImeToAsciiEx
(
UINT
uVKey
,
UINT
uScanCode
,
const
LPBYTE
lpbKeyState
,
TRANSMSGLIST
*
lpdwTransKey
,
UINT
fuState
,
HIMC
hIMC
)
{
LPINPUTCONTEXT
lpIMC
;
TRACE
(
"uVKey 0x%04x uScanCode 0x%04x fuState %u hIMC %p
\n
"
,
uVKey
,
uScanCode
,
fuState
,
hIMC
);
/* trigger the pending client_func_ime_set_text call */
MACDRV_CALL
(
ime_get_text_input
,
NULL
);
if
((
lpIMC
=
LockRealIMC
(
hIMC
)))
{
HWND
hwnd
=
input_context_get_ui_hwnd
(
lpIMC
);
UpdateDataInDefaultIMEWindow
(
lpIMC
,
hwnd
,
FALSE
);
UnlockRealIMC
(
hIMC
);
}
return
0
;
}
static
BOOL
IME_SetCompositionString
(
void
*
hIMC
,
DWORD
dwIndex
,
LPCVOID
lpComp
,
DWORD
dwCompLen
,
DWORD
cursor_pos
,
BOOL
cursor_valid
)
{
LPINPUTCONTEXT
lpIMC
;
...
...
dlls/winemac.drv/macdrv.h
View file @
54bbdb83
...
...
@@ -163,6 +163,7 @@ extern BOOL macdrv_RegisterHotKey(HWND hwnd, UINT mod_flags, UINT vkey) DECLSPEC
extern
void
macdrv_UnregisterHotKey
(
HWND
hwnd
,
UINT
modifiers
,
UINT
vkey
)
DECLSPEC_HIDDEN
;
extern
SHORT
macdrv_VkKeyScanEx
(
WCHAR
wChar
,
HKL
hkl
)
DECLSPEC_HIDDEN
;
extern
UINT
macdrv_ImeProcessKey
(
HIMC
himc
,
UINT
wparam
,
UINT
lparam
,
const
BYTE
*
state
)
DECLSPEC_HIDDEN
;
extern
UINT
macdrv_ImeToAsciiEx
(
UINT
vkey
,
UINT
vsc
,
const
BYTE
*
state
,
COMPOSITIONSTRING
*
compstr
,
HIMC
himc
)
DECLSPEC_HIDDEN
;
extern
UINT
macdrv_MapVirtualKeyEx
(
UINT
wCode
,
UINT
wMapType
,
HKL
hkl
)
DECLSPEC_HIDDEN
;
extern
INT
macdrv_ToUnicodeEx
(
UINT
virtKey
,
UINT
scanCode
,
const
BYTE
*
lpKeyState
,
LPWSTR
bufW
,
int
bufW_size
,
UINT
flags
,
HKL
hkl
)
DECLSPEC_HIDDEN
;
...
...
@@ -278,7 +279,6 @@ extern NTSTATUS macdrv_dnd_get_formats(void *arg) DECLSPEC_HIDDEN;
extern
NTSTATUS
macdrv_dnd_have_format
(
void
*
arg
)
DECLSPEC_HIDDEN
;
extern
NTSTATUS
macdrv_dnd_release
(
void
*
arg
)
DECLSPEC_HIDDEN
;
extern
NTSTATUS
macdrv_dnd_retain
(
void
*
arg
)
DECLSPEC_HIDDEN
;
extern
NTSTATUS
macdrv_ime_get_text_input
(
void
*
arg
)
DECLSPEC_HIDDEN
;
extern
NTSTATUS
macdrv_notify_icon
(
void
*
arg
)
DECLSPEC_HIDDEN
;
extern
NTSTATUS
macdrv_client_func
(
enum
macdrv_client_funcs
func
,
const
void
*
params
,
...
...
dlls/winemac.drv/macdrv_main.c
View file @
54bbdb83
...
...
@@ -622,7 +622,6 @@ const unixlib_entry_t __wine_unix_call_funcs[] =
macdrv_dnd_have_format
,
macdrv_dnd_release
,
macdrv_dnd_retain
,
macdrv_ime_get_text_input
,
macdrv_init
,
macdrv_notify_icon
,
macdrv_quit_result
,
...
...
@@ -724,7 +723,6 @@ const unixlib_entry_t __wine_unix_call_wow64_funcs[] =
macdrv_dnd_have_format
,
macdrv_dnd_release
,
macdrv_dnd_retain
,
macdrv_ime_get_text_input
,
wow64_init
,
wow64_notify_icon
,
macdrv_quit_result
,
...
...
dlls/winemac.drv/unixlib.h
View file @
54bbdb83
...
...
@@ -26,7 +26,6 @@ enum macdrv_funcs
unix_dnd_have_format
,
unix_dnd_release
,
unix_dnd_retain
,
unix_ime_get_text_input
,
unix_init
,
unix_notify_icon
,
unix_quit_result
,
...
...
dlls/winemac.drv/winemac.drv.spec
View file @
54bbdb83
...
...
@@ -3,4 +3,3 @@
# IME
@ stdcall ImeSelect(long long)
@ stdcall ImeToAsciiEx(long long ptr ptr long long)
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