add SystemResizable flag to WindowCreateInfo
							parent
							
								
									d6bd11d63f
								
							
						
					
					
						commit
						424f410688
					
				|  | @ -25,6 +25,11 @@ namespace MoonWorks | ||||||
| 				windowFlags |= SDL.SDL_WindowFlags.SDL_WINDOW_FULLSCREEN_DESKTOP; | 				windowFlags |= SDL.SDL_WindowFlags.SDL_WINDOW_FULLSCREEN_DESKTOP; | ||||||
| 			} | 			} | ||||||
| 
 | 
 | ||||||
|  | 			if (windowCreateInfo.SystemResizable) | ||||||
|  | 			{ | ||||||
|  | 				windowFlags |= SDL.SDL_WindowFlags.SDL_WINDOW_RESIZABLE; | ||||||
|  | 			} | ||||||
|  | 
 | ||||||
| 			ScreenMode = windowCreateInfo.ScreenMode; | 			ScreenMode = windowCreateInfo.ScreenMode; | ||||||
| 
 | 
 | ||||||
| 			Handle = SDL.SDL_CreateWindow( | 			Handle = SDL.SDL_CreateWindow( | ||||||
|  |  | ||||||
|  | @ -6,17 +6,20 @@ | ||||||
| 		public uint WindowWidth; | 		public uint WindowWidth; | ||||||
| 		public uint WindowHeight; | 		public uint WindowHeight; | ||||||
| 		public ScreenMode ScreenMode; | 		public ScreenMode ScreenMode; | ||||||
|  | 		public bool SystemResizable; | ||||||
| 
 | 
 | ||||||
| 		public WindowCreateInfo( | 		public WindowCreateInfo( | ||||||
| 			string windowTitle, | 			string windowTitle, | ||||||
| 			uint windowWidth, | 			uint windowWidth, | ||||||
| 			uint windowHeight, | 			uint windowHeight, | ||||||
| 			ScreenMode screenMode | 			ScreenMode screenMode, | ||||||
|  | 			bool systemResizable = false | ||||||
| 		) { | 		) { | ||||||
| 			WindowTitle = windowTitle; | 			WindowTitle = windowTitle; | ||||||
| 			WindowWidth = windowWidth; | 			WindowWidth = windowWidth; | ||||||
| 			WindowHeight = windowHeight; | 			WindowHeight = windowHeight; | ||||||
| 			ScreenMode = screenMode; | 			ScreenMode = screenMode; | ||||||
|  | 			SystemResizable = systemResizable; | ||||||
| 		} | 		} | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue