[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 12/13] ui/cocoa: Resize window after toggling zoom-to-fit
From: |
Philippe Mathieu-Daudé |
Subject: |
[PULL 12/13] ui/cocoa: Resize window after toggling zoom-to-fit |
Date: |
Tue, 26 Mar 2024 16:45:03 +0100 |
From: Akihiko Odaki <akihiko.odaki@daynix.com>
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>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-ID: <20240323-fixes-v2-2-18651a2b0394@daynix.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
ui/cocoa.m | 1 +
1 file changed, 1 insertion(+)
diff --git a/ui/cocoa.m b/ui/cocoa.m
index 17e125d66d..3efa8ac1a9 100644
--- a/ui/cocoa.m
+++ b/ui/cocoa.m
@@ -1408,6 +1408,7 @@ - (void)zoomToFit:(id) sender
[[cocoaView window] setStyleMask:styleMask];
[sender setState:styleMask & NSWindowStyleMaskResizable ?
NSControlStateValueOn : NSControlStateValueOff];
+ [cocoaView resizeWindow];
}
- (void)toggleZoomInterpolation:(id) sender
--
2.41.0
- [PULL 01/13] target/i386/tcg: Enable page walking from MMIO memory, (continued)
- [PULL 01/13] target/i386/tcg: Enable page walking from MMIO memory, Philippe Mathieu-Daudé, 2024/03/26
- [PULL 03/13] monitor/hmp-cmds-target: Append a space in error message in gpa2hva(), Philippe Mathieu-Daudé, 2024/03/26
- [PULL 04/13] target/tricore/helper: Use correct string format in cpu_tlb_fill(), Philippe Mathieu-Daudé, 2024/03/26
- [PULL 05/13] hw/clock: Let clock_set_mul_div() return a boolean value, Philippe Mathieu-Daudé, 2024/03/26
- [PULL 06/13] hw/misc/stm32l4x5_rcc: Inline clock_update() in clock_mux_update(), Philippe Mathieu-Daudé, 2024/03/26
- [PULL 07/13] hw/misc/stm32l4x5_rcc: Propagate period when enabling a clock, Philippe Mathieu-Daudé, 2024/03/26
- [PULL 09/13] contrib/plugins/execlog: Fix compiler warning, Philippe Mathieu-Daudé, 2024/03/26
- [PULL 08/13] docs/system/ppc/amigang.rst: Fix formatting, Philippe Mathieu-Daudé, 2024/03/26
- [PULL 10/13] hw/smbios: add stub for smbios_get_table_legacy(), Philippe Mathieu-Daudé, 2024/03/26
- [PULL 11/13] ui/cocoa: Fix aspect ratio, Philippe Mathieu-Daudé, 2024/03/26
- [PULL 12/13] ui/cocoa: Resize window after toggling zoom-to-fit,
Philippe Mathieu-Daudé <=
- [PULL 13/13] ui/cocoa: Use NSTrackingInVisibleRect, Philippe Mathieu-Daudé, 2024/03/26
- Re: [PULL 00/13] Misc HW patches for 2024-03-26, Peter Maydell, 2024/03/26