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
cba3b122
Commit
cba3b122
authored
Aug 08, 2006
by
Matt Finnicum
Committed by
Alexandre Julliard
Aug 08, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20: Modify ME_CharFromPoint to work properly with password controls.
parent
1209e669
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
run.c
dlls/riched20/run.c
+14
-2
No files found.
dlls/riched20/run.c
View file @
cba3b122
...
...
@@ -512,8 +512,20 @@ int ME_CharFromPoint(ME_TextEditor *editor, int cx, ME_Run *run)
}
hDC
=
GetDC
(
editor
->
hWnd
);
hOldFont
=
ME_SelectStyleFont
(
editor
,
hDC
,
run
->
style
);
GetTextExtentExPointW
(
hDC
,
run
->
strText
->
szData
,
run
->
strText
->
nLen
,
cx
,
&
fit
,
NULL
,
&
sz
);
if
(
editor
->
cPasswordMask
)
{
ME_String
*
strMasked
=
ME_MakeStringR
(
editor
->
cPasswordMask
,
ME_StrVLen
(
run
->
strText
));
GetTextExtentExPointW
(
hDC
,
strMasked
->
szData
,
run
->
strText
->
nLen
,
cx
,
&
fit
,
NULL
,
&
sz
);
ME_DestroyString
(
strMasked
);
}
else
{
GetTextExtentExPointW
(
hDC
,
run
->
strText
->
szData
,
run
->
strText
->
nLen
,
cx
,
&
fit
,
NULL
,
&
sz
);
}
ME_UnselectStyleFont
(
editor
,
hDC
,
run
->
style
,
hOldFont
);
ReleaseDC
(
editor
->
hWnd
,
hDC
);
return
fit
;
...
...
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