summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/video_out/macosx/video_window.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_out/macosx/video_window.m b/src/video_out/macosx/video_window.m
index 543ce6ff3..e161613b3 100644
--- a/src/video_out/macosx/video_window.m
+++ b/src/video_out/macosx/video_window.m
@@ -109,7 +109,7 @@ NSString *XineViewDidResizeNotification = @"XineViewDidResizeNotification";
NSRect standard_frame;
if ([xineView isFullScreen])
- return;
+ return defaultFrame;
screen_size = defaultFrame.size;
video_size = [xineView videoSize];
@@ -379,7 +379,7 @@ NSString *XineViewDidResizeNotification = @"XineViewDidResizeNotification";
}
- (void) calcFullScreenAspect {
- int fs_width, fs_height, x, y, w, h;
+ int fs_width, fs_height, x = 0, y = 0, w = 0, h = 0;
fs_width = CGDisplayPixelsWide (kCGDirectMainDisplay);
fs_height = CGDisplayPixelsHigh (kCGDirectMainDisplay);