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
a935c2af
Commit
a935c2af
authored
May 25, 2004
by
Ulrich Czekalla
Committed by
Alexandre Julliard
May 25, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix update region calculation for the case where a word wraps up to
the previous line.
parent
32e3d899
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
edit.c
controls/edit.c
+13
-1
No files found.
controls/edit.c
View file @
a935c2af
...
...
@@ -1125,7 +1125,8 @@ static void EDIT_BuildLineDefs_ML(EDITSTATE *es, INT istart, INT iend, INT delta
es
->
tabs_count
,
es
->
tabs
));
/* FIXME: check here for lines that are too wide even in AUTOHSCROLL (> 32767 ???) */
if
((
!
(
es
->
style
&
ES_AUTOHSCROLL
))
&&
(
current_line
->
width
>
fw
))
{
if
(
!
(
es
->
style
&
ES_AUTOHSCROLL
))
{
if
(
current_line
->
width
>
fw
)
{
INT
next
=
0
;
INT
prev
;
do
{
...
...
@@ -1167,6 +1168,17 @@ static void EDIT_BuildLineDefs_ML(EDITSTATE *es, INT istart, INT iend, INT delta
current_line
->
ending
=
END_WRAP
;
current_line
->
width
=
(
INT
)
LOWORD
(
GetTabbedTextExtentW
(
dc
,
current_position
,
current_line
->
net_length
,
es
->
tabs_count
,
es
->
tabs
));
}
else
if
(
orig_net_length
<
current_line
->
net_length
&&
current_line
==
start_line
&&
current_line
->
index
!=
nstart_index
)
{
/* The previous line expanded but it's still not as wide as the client rect */
/* The expansion is due to an upwards line wrap so we must partially include
it in the update region */
nstart_line
=
line_index
;
nstart_index
=
current_line
->
index
;
istart
=
current_line
->
index
+
orig_net_length
;
}
}
...
...
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