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
c83841ca
Commit
c83841ca
authored
Oct 27, 2011
by
Aric Stewart
Committed by
Alexandre Julliard
Oct 28, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Improvement for performance in soft linebreaking.
parent
820460fc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
edit.c
dlls/user32/edit.c
+8
-2
No files found.
dlls/user32/edit.c
View file @
c83841ca
...
...
@@ -602,15 +602,20 @@ static void EDIT_BuildLineDefs_ML(EDITSTATE *es, INT istart, INT iend, INT delta
if
(
!
(
es
->
style
&
ES_AUTOHSCROLL
))
{
if
(
current_line
->
width
>
fw
)
{
INT
prev
;
INT
prev
,
next
;
int
w
;
const
SIZE
*
sz
;
float
d
;
prev
=
current_line
->
net_length
-
1
;
w
=
current_line
->
net_length
;
d
=
(
float
)
current_line
->
width
/
(
float
)
fw
;
if
(
d
>
1
.
2
)
d
-=
0
.
2
;
next
=
prev
/
d
;
if
(
next
>=
prev
)
next
=
prev
-
1
;
do
{
prev
=
EDIT_CallWordBreakProc
(
es
,
current_position
-
es
->
text
,
prev
-
1
,
current_line
->
net_length
,
WB_LEFT
);
next
,
current_line
->
net_length
,
WB_LEFT
);
current_line
->
net_length
=
prev
;
EDIT_InvalidateUniscribeData_linedef
(
current_line
);
EDIT_UpdateUniscribeData_linedef
(
es
,
NULL
,
current_line
);
...
...
@@ -619,6 +624,7 @@ static void EDIT_BuildLineDefs_ML(EDITSTATE *es, INT istart, INT iend, INT delta
current_line
->
width
=
sz
->
cx
;
else
prev
=
0
;
next
=
prev
-
1
;
}
while
(
prev
&&
current_line
->
width
>
fw
);
current_line
->
net_length
=
w
;
...
...
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