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
1c0aaf7d
Commit
1c0aaf7d
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: Use ME_PointFromChar to calculate the caret position.
parent
635614b5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
9 deletions
+3
-9
caret.c
dlls/riched20/caret.c
+3
-9
No files found.
dlls/riched20/caret.c
View file @
1c0aaf7d
...
...
@@ -205,7 +205,7 @@ ME_GetCursorCoordinates(ME_TextEditor *editor, ME_Cursor *pCursor,
ME_DisplayItem
*
para
=
pCursor
->
pPara
;
ME_DisplayItem
*
pSizeRun
=
run
;
ME_Context
c
;
SIZE
sz
=
{
0
,
0
}
;
int
run_x
;
assert
(
height
&&
x
&&
y
);
assert
(
~
para
->
member
.
para
.
nFlags
&
MEPF_REWRAP
);
...
...
@@ -235,18 +235,12 @@ ME_GetCursorCoordinates(ME_TextEditor *editor, ME_Cursor *pCursor,
pSizeRun
=
run
=
tmp
;
assert
(
run
);
assert
(
run
->
type
==
diRun
);
sz
=
ME_GetRunSize
(
&
c
,
&
para
->
member
.
para
,
&
run
->
member
.
run
,
run
->
member
.
run
.
len
,
row
->
member
.
row
.
nLMargin
);
}
}
if
(
pCursor
->
nOffset
)
{
sz
=
ME_GetRunSize
(
&
c
,
&
para
->
member
.
para
,
&
run
->
member
.
run
,
pCursor
->
nOffset
,
row
->
member
.
row
.
nLMargin
);
}
run_x
=
ME_PointFromCharContext
(
&
c
,
&
run
->
member
.
run
,
pCursor
->
nOffset
);
*
height
=
pSizeRun
->
member
.
run
.
nAscent
+
pSizeRun
->
member
.
run
.
nDescent
;
*
x
=
c
.
rcView
.
left
+
run
->
member
.
run
.
pt
.
x
+
sz
.
c
x
-
editor
->
horz_si
.
nPos
;
*
x
=
c
.
rcView
.
left
+
run
->
member
.
run
.
pt
.
x
+
run_
x
-
editor
->
horz_si
.
nPos
;
*
y
=
c
.
rcView
.
top
+
para
->
member
.
para
.
pt
.
y
+
row
->
member
.
row
.
nBaseline
+
run
->
member
.
run
.
pt
.
y
-
pSizeRun
->
member
.
run
.
nAscent
-
editor
->
vert_si
.
nPos
;
...
...
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