mirror of
				https://github.com/Ryujinx/SDL.git
				synced 2025-11-04 14:14:49 +00:00 
			
		
		
		
	Hack to fix missing window decorations after toggling fullscreen mode in Mac OS X 10.10
This commit is contained in:
		
							parent
							
								
									1e3c28ac64
								
							
						
					
					
						commit
						e8954d5d8c
					
				| 
						 | 
				
			
			@ -1456,6 +1456,11 @@ Cocoa_SetWindowFullscreen(_THIS, SDL_Window * window, SDL_VideoDisplay * display
 | 
			
		|||
 | 
			
		||||
        if ([nswindow respondsToSelector: @selector(setStyleMask:)]) {
 | 
			
		||||
            [nswindow performSelector: @selector(setStyleMask:) withObject: (id)(uintptr_t)GetWindowStyle(window)];
 | 
			
		||||
 | 
			
		||||
            /* Hack to restore window decorations on Mac OS X 10.10 */
 | 
			
		||||
            NSRect frameRect = [nswindow frame];
 | 
			
		||||
            [nswindow setFrame:NSMakeRect(frameRect.origin.x, frameRect.origin.y, frameRect.size.width + 1, frameRect.size.height) display:NO];
 | 
			
		||||
            [nswindow setFrame:frameRect display:NO];
 | 
			
		||||
        } else {
 | 
			
		||||
            nswindow = Cocoa_RebuildWindow(data, nswindow, GetWindowStyle(window));
 | 
			
		||||
        }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue