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
9779f0ac
Commit
9779f0ac
authored
Oct 08, 2013
by
Ken Thomases
Committed by
Alexandre Julliard
Oct 08, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winemac: If the app doesn't specify a custom max. tracking size, don't restrict Cocoa.
parent
4d9340eb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
5 deletions
+13
-5
window.c
dlls/winemac.drv/window.c
+13
-5
No files found.
dlls/winemac.drv/window.c
View file @
9779f0ac
...
...
@@ -479,8 +479,6 @@ static void sync_window_min_max_info(HWND hwnd)
WINDOWPLACEMENT
wpl
;
HMONITOR
monitor
;
struct
macdrv_win_data
*
data
;
RECT
min_rect
,
max_rect
;
CGSize
min_size
,
max_size
;
TRACE
(
"win %p
\n
"
,
hwnd
);
...
...
@@ -573,12 +571,22 @@ static void sync_window_min_max_info(HWND hwnd)
if
((
data
=
get_win_data
(
hwnd
))
&&
data
->
cocoa_window
)
{
RECT
min_rect
,
max_rect
;
CGSize
min_size
,
max_size
;
SetRect
(
&
min_rect
,
0
,
0
,
minmax
.
ptMinTrackSize
.
x
,
minmax
.
ptMinTrackSize
.
y
);
SetRect
(
&
max_rect
,
0
,
0
,
minmax
.
ptMaxTrackSize
.
x
,
minmax
.
ptMaxTrackSize
.
y
);
macdrv_window_to_mac_rect
(
data
,
style
,
&
min_rect
);
macdrv_window_to_mac_rect
(
data
,
style
,
&
max_rect
);
min_size
=
CGSizeMake
(
min_rect
.
right
-
min_rect
.
left
,
min_rect
.
bottom
-
min_rect
.
top
);
max_size
=
CGSizeMake
(
max_rect
.
right
-
max_rect
.
left
,
max_rect
.
bottom
-
max_rect
.
top
);
if
(
minmax
.
ptMaxTrackSize
.
x
==
GetSystemMetrics
(
SM_CXMAXTRACK
)
&&
minmax
.
ptMaxTrackSize
.
y
==
GetSystemMetrics
(
SM_CYMAXTRACK
))
max_size
=
CGSizeMake
(
CGFLOAT_MAX
,
CGFLOAT_MAX
);
else
{
SetRect
(
&
max_rect
,
0
,
0
,
minmax
.
ptMaxTrackSize
.
x
,
minmax
.
ptMaxTrackSize
.
y
);
macdrv_window_to_mac_rect
(
data
,
style
,
&
max_rect
);
max_size
=
CGSizeMake
(
max_rect
.
right
-
max_rect
.
left
,
max_rect
.
bottom
-
max_rect
.
top
);
}
TRACE
(
"min_size (%g,%g) max_size (%g,%g)
\n
"
,
min_size
.
width
,
min_size
.
height
,
max_size
.
width
,
max_size
.
height
);
macdrv_set_window_min_max_sizes
(
data
->
cocoa_window
,
min_size
,
max_size
);
...
...
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