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
48856290
Commit
48856290
authored
Jul 04, 2016
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jul 04, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Use InflateRect() too when stretching the RECT in just one axis.
Signed-off-by:
Michael Stefaniuc
<
mstefani@redhat.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
29abc7f1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
+3
-8
edit.c
dlls/user32/edit.c
+3
-8
No files found.
dlls/user32/edit.c
View file @
48856290
...
...
@@ -2376,14 +2376,9 @@ static void EDIT_SetRectNP(EDITSTATE *es, const RECT *rc)
else
if
(
es
->
style
&
WS_BORDER
)
{
bw
=
GetSystemMetrics
(
SM_CXBORDER
)
+
1
;
bh
=
GetSystemMetrics
(
SM_CYBORDER
)
+
1
;
es
->
format_rect
.
left
+=
bw
;
es
->
format_rect
.
right
-=
bw
;
if
(
es
->
format_rect
.
bottom
-
es
->
format_rect
.
top
>=
es
->
line_height
+
2
*
bh
)
{
es
->
format_rect
.
top
+=
bh
;
es
->
format_rect
.
bottom
-=
bh
;
}
InflateRect
(
&
es
->
format_rect
,
-
bw
,
0
);
if
(
es
->
format_rect
.
bottom
-
es
->
format_rect
.
top
>=
es
->
line_height
+
2
*
bh
)
InflateRect
(
&
es
->
format_rect
,
0
,
-
bh
);
}
es
->
format_rect
.
left
+=
es
->
left_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