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
65d0f7a7
Commit
65d0f7a7
authored
May 09, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
May 19, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
imm32: Remove now unused members from ime_private.
And move its definition to ime.c.
parent
d61a7864
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
30 deletions
+13
-30
ime.c
dlls/imm32/ime.c
+13
-21
ntuser.h
include/ntuser.h
+0
-9
No files found.
dlls/imm32/ime.c
View file @
65d0f7a7
...
...
@@ -23,6 +23,12 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
imm
);
struct
ime_private
{
BOOL
in_composition
;
HFONT
hfont
;
};
static
const
char
*
debugstr_imn
(
WPARAM
wparam
)
{
switch
(
wparam
)
...
...
@@ -139,7 +145,7 @@ static HFONT input_context_select_ui_font( INPUTCONTEXT *ctx, HDC hdc )
struct
ime_private
*
priv
;
HFONT
font
=
NULL
;
if
(
!
(
priv
=
ImmLockIMCC
(
ctx
->
hPrivate
)))
return
NULL
;
if
(
priv
->
textfont
)
font
=
SelectObject
(
hdc
,
priv
->
text
font
);
if
(
priv
->
hfont
)
font
=
SelectObject
(
hdc
,
priv
->
h
font
);
ImmUnlockIMCC
(
ctx
->
hPrivate
);
return
font
;
}
...
...
@@ -175,9 +181,9 @@ static UINT ime_set_composition_status( HIMC himc, BOOL composition )
if
(
!
(
ctx
=
ImmLockIMC
(
himc
)))
return
0
;
if
((
priv
=
ImmLockIMCC
(
ctx
->
hPrivate
)))
{
if
(
!
priv
->
bInC
omposition
&&
composition
)
msg
=
WM_IME_STARTCOMPOSITION
;
else
if
(
priv
->
bInC
omposition
&&
!
composition
)
msg
=
WM_IME_ENDCOMPOSITION
;
priv
->
bInC
omposition
=
composition
;
if
(
!
priv
->
in_c
omposition
&&
composition
)
msg
=
WM_IME_STARTCOMPOSITION
;
else
if
(
priv
->
in_c
omposition
&&
!
composition
)
msg
=
WM_IME_ENDCOMPOSITION
;
priv
->
in_c
omposition
=
composition
;
ImmUnlockIMCC
(
ctx
->
hPrivate
);
}
ImmUnlockIMC
(
himc
);
...
...
@@ -398,7 +404,6 @@ static LRESULT ime_ui_notify( HIMC himc, HWND hwnd, WPARAM wparam, LPARAM lparam
static
LRESULT
WINAPI
ime_ui_window_proc
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wparam
,
LPARAM
lparam
)
{
HIMC
himc
=
(
HIMC
)
GetWindowLongPtrW
(
hwnd
,
IMMGWL_IMC
);
INPUTCONTEXT
*
ctx
;
TRACE
(
"hwnd %p, himc %p, msg %s, wparam %#Ix, lparam %#Ix
\n
"
,
hwnd
,
himc
,
debugstr_wm_ime
(
msg
),
wparam
,
lparam
);
...
...
@@ -406,20 +411,7 @@ static LRESULT WINAPI ime_ui_window_proc( HWND hwnd, UINT msg, WPARAM wparam, LP
switch
(
msg
)
{
case
WM_CREATE
:
{
struct
ime_private
*
priv
;
SetWindowTextA
(
hwnd
,
"Wine Ime Active"
);
if
(
!
(
ctx
=
ImmLockIMC
(
himc
)))
return
TRUE
;
if
((
priv
=
ImmLockIMCC
(
ctx
->
hPrivate
)))
{
priv
->
hwndDefault
=
hwnd
;
ImmUnlockIMCC
(
ctx
->
hPrivate
);
}
ImmUnlockIMC
(
himc
);
return
TRUE
;
}
case
WM_PAINT
:
ime_ui_paint
(
himc
,
hwnd
);
return
FALSE
;
...
...
@@ -468,7 +460,7 @@ BOOL WINAPI ImeInquire( IMEINFO *info, WCHAR *ui_class, DWORD flags )
wcscpy
(
ui_class
,
ime_ui_class
.
lpszClassName
);
memset
(
info
,
0
,
sizeof
(
*
info
)
);
info
->
dwPrivateDataSize
=
sizeof
(
IMEPRIVATE
);
info
->
dwPrivateDataSize
=
sizeof
(
struct
ime_private
);
info
->
fdwProperty
=
IME_PROP_UNICODE
|
IME_PROP_AT_CARET
;
info
->
fdwConversionCaps
=
IME_CMODE_NATIVE
|
IME_CMODE_FULLSHAPE
;
info
->
fdwSentenceCaps
=
IME_SMODE_AUTOMATIC
;
...
...
@@ -656,8 +648,8 @@ BOOL WINAPI NotifyIME( HIMC himc, DWORD action, DWORD index, DWORD value )
case
IMC_SETCOMPOSITIONFONT
:
if
((
priv
=
ImmLockIMCC
(
ctx
->
hPrivate
)))
{
if
(
priv
->
textfont
)
DeleteObject
(
priv
->
text
font
);
priv
->
text
font
=
CreateFontIndirectW
(
&
ctx
->
lfFont
.
W
);
if
(
priv
->
hfont
)
DeleteObject
(
priv
->
h
font
);
priv
->
h
font
=
CreateFontIndirectW
(
&
ctx
->
lfFont
.
W
);
ImmUnlockIMCC
(
ctx
->
hPrivate
);
}
break
;
...
...
include/ntuser.h
View file @
65d0f7a7
...
...
@@ -511,15 +511,6 @@ struct ime_driver_call_params
COMPOSITIONSTRING
*
compstr
;
};
/* internal IME private */
typedef
struct
ime_private
{
BOOL
bInComposition
;
BOOL
bInternalState
;
HFONT
textfont
;
HWND
hwndDefault
;
}
IMEPRIVATE
,
*
LPIMEPRIVATE
;
#define WM_SYSTIMER 0x0118
/* the various structures that can be sent in messages, in platform-independent layout */
...
...
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