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
dc75bd40
Commit
dc75bd40
authored
Apr 01, 1999
by
Pavel Roskin
Committed by
Alexandre Julliard
Apr 01, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
EC_USEFONTINFO means es->char_width/3, not es->char_width. This is
true for multiline controls too, as my tests show.
parent
3025dc18
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
10 deletions
+4
-10
edit.c
controls/edit.c
+4
-10
No files found.
controls/edit.c
View file @
dc75bd40
...
...
@@ -2654,8 +2654,8 @@ static void EDIT_EM_SetLimitText(WND *wnd, EDITSTATE *es, INT limit)
* EM_SETMARGINS
*
* EC_USEFONTINFO is used as a left or right value i.e. lParam and not as an
* action wParam despite what the docs say.
It also appears not to affect
*
multiline controls??
* action wParam despite what the docs say.
EC_USEFONTINFO means one third
*
of the char's width, according to the new docs.
*
*/
static
void
EDIT_EM_SetMargins
(
WND
*
wnd
,
EDITSTATE
*
es
,
INT
action
,
...
...
@@ -2665,20 +2665,14 @@ static void EDIT_EM_SetMargins(WND *wnd, EDITSTATE *es, INT action,
if
(
left
!=
EC_USEFONTINFO
)
es
->
left_margin
=
left
;
else
if
(
es
->
style
&
ES_MULTILINE
)
es
->
left_margin
=
0
;
/* ?? */
else
es
->
left_margin
=
es
->
char_width
;
es
->
left_margin
=
es
->
char_width
/
3
;
}
if
(
action
&
EC_RIGHTMARGIN
)
{
if
(
right
!=
EC_USEFONTINFO
)
es
->
right_margin
=
right
;
else
if
(
es
->
style
&
ES_MULTILINE
)
es
->
right_margin
=
0
;
/* ?? */
else
es
->
right_margin
=
es
->
char_width
;
es
->
right_margin
=
es
->
char_width
/
3
;
}
TRACE
(
edit
,
"left=%d, right=%d
\n
"
,
es
->
left_margin
,
es
->
right_margin
);
}
...
...
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