diff options
author | dynaflash <[email protected]> | 2010-02-19 17:56:35 +0000 |
---|---|---|
committer | dynaflash <[email protected]> | 2010-02-19 17:56:35 +0000 |
commit | 766233a0d5cd7181ce3a20aeb631b3cd863fe686 (patch) | |
tree | 4f5874d6695ccdbcb4a216bb6ae72775757c8cd7 /macosx/HBPreviewController.m | |
parent | 09f0cf9a42628d7194b729f80fba8f2de00d2268 (diff) |
MacGui: Preview ... Allow the preview to use 100% of the the avaialable screen if it needs it.
- Removes the 85% hard cap.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3124 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBPreviewController.m')
-rw-r--r-- | macosx/HBPreviewController.m | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/macosx/HBPreviewController.m b/macosx/HBPreviewController.m index 5fdef7edb..a391b8dd0 100644 --- a/macosx/HBPreviewController.m +++ b/macosx/HBPreviewController.m @@ -1105,7 +1105,7 @@ CGFloat minWidth = 480.0; CGFloat minHeight = 360.0; - NSSize screenSize = [[NSScreen mainScreen] frame].size; + NSSize screenSize = [[NSScreen mainScreen] visibleFrame].size; NSSize sheetSize = [[self window] frame].size; NSSize viewAreaSize = [fPictureViewArea frame].size; CGFloat paddingX = sheetSize.width - viewAreaSize.width; @@ -1113,18 +1113,8 @@ CGFloat maxWidth; CGFloat maxHeight; - if (isFullScreen) - { - /* We are in full screen mode so lets use the full screen if we need to */ - maxWidth = screenSize.width - paddingX; - maxHeight = screenSize.height - paddingY; - } - else - { - // The max size of the view is when the sheet is taking up 85% of the screen. - maxWidth = (0.85 * screenSize.width) - paddingX; - maxHeight = (0.85 * screenSize.height) - paddingY; - } + maxWidth = screenSize.width - paddingX; + maxHeight = screenSize.height - paddingY; NSSize resultSize = imageSize; CGFloat resultPar = resultSize.width / resultSize.height; |