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
b423532f
Commit
b423532f
authored
Dec 16, 2013
by
Ken Thomases
Committed by
Alexandre Julliard
Dec 17, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: In WINPOS_SysCommandSizeMove(), fix constraining a point to a rect's…
user32: In WINPOS_SysCommandSizeMove(), fix constraining a point to a rect's right and bottom edges.
parent
2692b9d2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
winpos.c
dlls/user32/winpos.c
+4
-4
No files found.
dlls/user32/winpos.c
View file @
b423532f
...
@@ -2747,9 +2747,9 @@ void WINPOS_SysCommandSizeMove( HWND hwnd, WPARAM wParam )
...
@@ -2747,9 +2747,9 @@ void WINPOS_SysCommandSizeMove( HWND hwnd, WPARAM wParam )
}
}
pt
.
x
=
max
(
pt
.
x
,
mouseRect
.
left
);
pt
.
x
=
max
(
pt
.
x
,
mouseRect
.
left
);
pt
.
x
=
min
(
pt
.
x
,
mouseRect
.
right
);
pt
.
x
=
min
(
pt
.
x
,
mouseRect
.
right
-
1
);
pt
.
y
=
max
(
pt
.
y
,
mouseRect
.
top
);
pt
.
y
=
max
(
pt
.
y
,
mouseRect
.
top
);
pt
.
y
=
min
(
pt
.
y
,
mouseRect
.
bottom
);
pt
.
y
=
min
(
pt
.
y
,
mouseRect
.
bottom
-
1
);
if
(
!
parent
)
if
(
!
parent
)
{
{
...
@@ -2763,9 +2763,9 @@ void WINPOS_SysCommandSizeMove( HWND hwnd, WPARAM wParam )
...
@@ -2763,9 +2763,9 @@ void WINPOS_SysCommandSizeMove( HWND hwnd, WPARAM wParam )
if
(
mon
&&
GetMonitorInfoW
(
mon
,
&
info
))
if
(
mon
&&
GetMonitorInfoW
(
mon
,
&
info
))
{
{
pt
.
x
=
max
(
pt
.
x
,
info
.
rcWork
.
left
);
pt
.
x
=
max
(
pt
.
x
,
info
.
rcWork
.
left
);
pt
.
x
=
min
(
pt
.
x
,
info
.
rcWork
.
right
);
pt
.
x
=
min
(
pt
.
x
,
info
.
rcWork
.
right
-
1
);
pt
.
y
=
max
(
pt
.
y
,
info
.
rcWork
.
top
);
pt
.
y
=
max
(
pt
.
y
,
info
.
rcWork
.
top
);
pt
.
y
=
min
(
pt
.
y
,
info
.
rcWork
.
bottom
);
pt
.
y
=
min
(
pt
.
y
,
info
.
rcWork
.
bottom
-
1
);
}
}
}
}
...
...
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