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
478ffa8c
Commit
478ffa8c
authored
May 09, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
May 15, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
imm32: Use DrawTextW to wrap IME composition string.
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=53860
parent
bbfb15a5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
ime.c
dlls/imm32/ime.c
+4
-4
No files found.
dlls/imm32/ime.c
View file @
478ffa8c
...
...
@@ -253,11 +253,10 @@ static void ime_ui_paint( HIMC himc, HWND hwnd )
if
(
ctx
->
cfCompForm
.
dwStyle
==
CFS_RECT
)
{
RECT
client
;
client
=
ctx
->
cfCompForm
.
rcArea
;
RECT
client
=
ctx
->
cfCompForm
.
rcArea
;
MapWindowPoints
(
ctx
->
hWnd
,
0
,
(
POINT
*
)
&
client
,
2
);
IntersectRect
(
&
rect
,
&
rect
,
&
client
);
/* TODO: Wrap the input if needed */
DrawTextW
(
hdc
,
str
,
len
,
&
rect
,
DT_WORDBREAK
|
DT_CALCRECT
);
}
if
(
ctx
->
cfCompForm
.
dwStyle
==
CFS_DEFAULT
)
...
...
@@ -286,7 +285,8 @@ static void ime_ui_paint( HIMC himc, HWND hwnd )
}
new_rect
=
rect
;
TextOutW
(
hdc
,
offset
.
x
,
offset
.
y
,
str
,
len
);
OffsetRect
(
&
rect
,
offset
.
x
-
rect
.
left
,
offset
.
y
-
rect
.
top
);
DrawTextW
(
hdc
,
str
,
len
,
&
rect
,
DT_WORDBREAK
);
if
(
font
)
SelectObject
(
hdc
,
font
);
free
(
str
);
...
...
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