summaryrefslogtreecommitdiffstats
path: root/macosx/PictureController.m
diff options
context:
space:
mode:
authordynaflash <[email protected]>2010-02-19 19:53:52 +0000
committerdynaflash <[email protected]>2010-02-19 19:53:52 +0000
commit2543a7aed801cbfdc43d85f4a5ddce37960387c3 (patch)
tree4be74a39d2a8462682a22e5be39f6656745cd331 /macosx/PictureController.m
parent766233a0d5cd7181ce3a20aeb631b3cd863fe686 (diff)
MacGui: Removie Full Screen preview mode as its largely redundant when we have 100 percent full screen scaling in windowed mode. Removes a lot of code that is really not needed.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3125 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/PictureController.m')
-rw-r--r--macosx/PictureController.m27
1 files changed, 4 insertions, 23 deletions
diff --git a/macosx/PictureController.m b/macosx/PictureController.m
index 19b3c0acf..5f916d8be 100644
--- a/macosx/PictureController.m
+++ b/macosx/PictureController.m
@@ -36,14 +36,8 @@
//------------------------------------------------------------------------------------
- (IBAction) showPictureWindow: (id)sender
{
- if ([fPreviewController fullScreen] == YES)
- {
- [self showWindow:sender];
- [[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"PictureSizeWindowIsOpen"];
- [self setToFullScreenMode];
- }
- else
- {
+
+
if ([[self window] isVisible])
{
[[self window] close];
@@ -54,15 +48,12 @@
[[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"PictureSizeWindowIsOpen"];
[self setToWindowedMode];
}
- }
+
[self adjustFilterDisplay:nil];
[self adjustSizingDisplay:nil];
}
-- (BOOL) previewFullScreenMode
-{
- return [fPreviewController fullScreen];
-}
+
/* this method is used to detect clicking on a tab in fSizeFilterView */
- (void)tabView:(NSTabView *)tabView didSelectTabViewItem:(NSTabViewItem *)tabViewItem
@@ -409,16 +400,6 @@
-
-- (void) setToFullScreenMode
-{
- int32_t shieldLevel = CGShieldingWindowLevel();
-
- [fPictureWindow setLevel:shieldLevel + 1];
- // Show the window.
- [fPictureWindow makeKeyAndOrderFront:self];
-}
-
- (void) setToWindowedMode
{
/* Set the window back to Floating Window mode