mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-02-13 15:23:34 +00:00
cocoa: Fix 1px border in fullscreen on Tahoe
(cherry picked from commit 1d83a35e48)
This commit is contained in:
committed by
Sam Lantinga
parent
12e9ff33c3
commit
48e5fc7b69
@@ -3054,6 +3054,9 @@ SDL_FullscreenResult Cocoa_SetWindowFullscreen(SDL_VideoDevice *_this, SDL_Windo
|
||||
[nswindow setContentSize:rect.size];
|
||||
[nswindow setFrameOrigin:rect.origin];
|
||||
|
||||
// Disable the window shadow in fullscreen to avoid a visible 1px border on Tahoe
|
||||
nswindow.hasShadow = !fullscreen && !(window->flags & SDL_WINDOW_TRANSPARENT);
|
||||
|
||||
// When the window style changes the title is cleared
|
||||
if (!fullscreen) {
|
||||
Cocoa_SetWindowTitle(_this, window);
|
||||
|
||||
Reference in New Issue
Block a user