summaryrefslogtreecommitdiffstats
path: root/video/out/cocoa
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/cocoa')
-rw-r--r--video/out/cocoa/mpvadapter.h1
-rw-r--r--video/out/cocoa/window.m8
2 files changed, 3 insertions, 6 deletions
diff --git a/video/out/cocoa/mpvadapter.h b/video/out/cocoa/mpvadapter.h
index eafeefce9f..b1a13d5ace 100644
--- a/video/out/cocoa/mpvadapter.h
+++ b/video/out/cocoa/mpvadapter.h
@@ -23,6 +23,7 @@
- (void)signalMouseMovement:(NSPoint)point;
- (void)putKey:(int)mpkey withModifiers:(int)modifiers;
- (void)putAxis:(int)mpkey delta:(float)delta;
+- (void)putCommand:(char*)cmd;
- (void)performAsyncResize:(NSSize)size;
- (BOOL)isInFullScreenMode;
diff --git a/video/out/cocoa/window.m b/video/out/cocoa/window.m
index 97f5af1dd9..b259af134e 100644
--- a/video/out/cocoa/window.m
+++ b/video/out/cocoa/window.m
@@ -97,12 +97,8 @@
- (void)mulSize:(float)multiplier
{
- if (![self.adapter isInFullScreenMode]) {
- NSSize size = [self.adapter videoSize];
- size.width *= multiplier;
- size.height *= multiplier;
- [self setCenteredContentSize:size];
- }
+ char *cmd = ta_asprintf(NULL, "set window-scale %f", multiplier);
+ [self.adapter putCommand:cmd];
}
- (int)titleHeight