[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 2/3] ui/cocoa: Resize window after toggling zoom-to-fit
From: |
Akihiko Odaki |
Subject: |
[PATCH 2/3] ui/cocoa: Resize window after toggling zoom-to-fit |
Date: |
Mon, 18 Mar 2024 16:53:01 +0900 |
Resize the window so that the content will fit without zooming.
Fixes: 91aa508d0274 ("ui/cocoa: Let the platform toggle fullscreen")
Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
---
ui/cocoa.m | 1 +
1 file changed, 1 insertion(+)
diff --git a/ui/cocoa.m b/ui/cocoa.m
index d6a5b462f78b..1324be6d32fe 100644
--- a/ui/cocoa.m
+++ b/ui/cocoa.m
@@ -1378,6 +1378,7 @@ - (void)zoomToFit:(id) sender
[[cocoaView window] setStyleMask:styleMask];
[sender setState:styleMask & NSWindowStyleMaskResizable ?
NSControlStateValueOn : NSControlStateValueOff];
+ [cocoaView resizeWindow];
}
- (void)toggleZoomInterpolation:(id) sender
--
2.44.0
[PATCH 3/3] ui/cocoa: Use NSTrackingInVisibleRect, Akihiko Odaki, 2024/03/18