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
a4378f44
Commit
a4378f44
authored
Feb 15, 2013
by
Huw Davies
Committed by
Alexandre Julliard
Feb 15, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20: Move the range clamping to the helper now that the range isn't used later on.
parent
79278497
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
paint.c
dlls/riched20/paint.c
+2
-3
No files found.
dlls/riched20/paint.c
View file @
a4378f44
...
...
@@ -304,7 +304,8 @@ static void draw_space( ME_Context *c, ME_Run *run, int x, int y,
static
void
get_selection_rect
(
ME_Context
*
c
,
ME_Run
*
run
,
int
from
,
int
to
,
int
cy
,
RECT
*
r
)
{
from
=
max
(
0
,
from
);
to
=
min
(
run
->
len
,
to
);
r
->
left
=
ME_PointFromCharContext
(
c
,
run
,
from
);
r
->
top
=
0
;
r
->
right
=
ME_PointFromCharContext
(
c
,
run
,
to
);
...
...
@@ -349,8 +350,6 @@ static void ME_DrawTextWithStyle(ME_Context *c, ME_Run *run, int x, int y, LPCWS
if
(
selected
)
{
nSelFrom
=
max
(
0
,
nSelFrom
);
nSelTo
=
min
(
run
->
len
,
nSelTo
);
get_selection_rect
(
c
,
run
,
nSelFrom
,
nSelTo
,
cy
,
&
sel_rect
);
OffsetRect
(
&
sel_rect
,
x
,
ymin
);
...
...
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