Re: [PATCH 1/3] ui/cocoa: Fix aspect ratio

2024-03-23 Thread Akihiko Odaki
On 2024/03/22 21:55, Peter Maydell wrote: On Fri, 22 Mar 2024 at 12:25, Akihiko Odaki wrote: On 2024/03/22 21:22, Peter Maydell wrote: On Mon, 18 Mar 2024 at 07:53, Akihiko Odaki wrote: [NSWindow setContentAspectRatio:] does not trigger window resize itself, so the wrong aspect ratio will

Re: [PATCH 1/3] ui/cocoa: Fix aspect ratio

2024-03-22 Thread Peter Maydell
On Fri, 22 Mar 2024 at 12:25, Akihiko Odaki wrote: > > On 2024/03/22 21:22, Peter Maydell wrote: > > On Mon, 18 Mar 2024 at 07:53, Akihiko Odaki > > wrote: > >> > >> [NSWindow setContentAspectRatio:] does not trigger window resize itself, > >> so the wrong aspect ratio will persist if nothing

Re: [PATCH 1/3] ui/cocoa: Fix aspect ratio

2024-03-22 Thread Akihiko Odaki
On 2024/03/22 21:22, Peter Maydell wrote: On Mon, 18 Mar 2024 at 07:53, Akihiko Odaki wrote: [NSWindow setContentAspectRatio:] does not trigger window resize itself, so the wrong aspect ratio will persist if nothing resizes the window. Call [NSWindow setContentSize:] in such a case. Fixes:

Re: [PATCH 1/3] ui/cocoa: Fix aspect ratio

2024-03-22 Thread Peter Maydell
On Mon, 18 Mar 2024 at 07:53, Akihiko Odaki wrote: > > [NSWindow setContentAspectRatio:] does not trigger window resize itself, > so the wrong aspect ratio will persist if nothing resizes the window. > Call [NSWindow setContentSize:] in such a case. > > Fixes: 91aa508d0274 ("ui/cocoa: Let the

[PATCH 1/3] ui/cocoa: Fix aspect ratio

2024-03-18 Thread Akihiko Odaki
[NSWindow setContentAspectRatio:] does not trigger window resize itself, so the wrong aspect ratio will persist if nothing resizes the window. Call [NSWindow setContentSize:] in such a case. Fixes: 91aa508d0274 ("ui/cocoa: Let the platform toggle fullscreen") Signed-off-by: Akihiko Odaki ---