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
4b7300ef
Commit
4b7300ef
authored
Oct 31, 2011
by
Aric Stewart
Committed by
Alexandre Julliard
Oct 31, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Respect rev for painting selections.
parent
1cde966c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
10 deletions
+14
-10
edit.c
dlls/user32/edit.c
+14
-10
No files found.
dlls/user32/edit.c
View file @
4b7300ef
...
...
@@ -2136,10 +2136,10 @@ static INT EDIT_PaintText(EDITSTATE *es, HDC dc, INT x, INT y, INT line, INT col
*/
static
void
EDIT_PaintLine
(
EDITSTATE
*
es
,
HDC
dc
,
INT
line
,
BOOL
rev
)
{
INT
s
;
INT
e
;
INT
li
;
INT
ll
;
INT
s
=
0
;
INT
e
=
0
;
INT
li
=
0
;
INT
ll
=
0
;
INT
x
;
INT
y
;
LRESULT
pos
;
...
...
@@ -2185,12 +2185,16 @@ static void EDIT_PaintLine(EDITSTATE *es, HDC dc, INT line, BOOL rev)
x
+=
es
->
format_rect
.
left
;
}
li
=
EDIT_EM_LineIndex
(
es
,
line
);
ll
=
EDIT_EM_LineLength
(
es
,
li
);
s
=
min
(
es
->
selection_start
,
es
->
selection_end
);
e
=
max
(
es
->
selection_start
,
es
->
selection_end
);
s
=
min
(
li
+
ll
,
max
(
li
,
s
));
e
=
min
(
li
+
ll
,
max
(
li
,
e
));
if
(
rev
)
{
li
=
EDIT_EM_LineIndex
(
es
,
line
);
ll
=
EDIT_EM_LineLength
(
es
,
li
);
s
=
min
(
es
->
selection_start
,
es
->
selection_end
);
e
=
max
(
es
->
selection_start
,
es
->
selection_end
);
s
=
min
(
li
+
ll
,
max
(
li
,
s
));
e
=
min
(
li
+
ll
,
max
(
li
,
e
));
}
if
(
ssa
)
ScriptStringOut
(
ssa
,
x
,
y
,
0
,
&
es
->
format_rect
,
s
-
li
,
e
-
li
,
FALSE
);
else
if
(
rev
&&
(
s
!=
e
)
&&
...
...
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