Improved full screen; hide cursor as well
This commit is contained in:
		
							
								
								
									
										3
									
								
								main.cpp
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								main.cpp
									
									
									
									
									
								
							| @@ -165,10 +165,11 @@ int main(int argc, const char * argv[]) { | |||||||
|         sc::gui::SDLImageWrapper sdl_image; |         sc::gui::SDLImageWrapper sdl_image; | ||||||
|  |  | ||||||
|         // main window |         // main window | ||||||
|         sc::gui::Window& window {sc::gui::Window::new_window("Living Art", SDL_WINDOW_FULLSCREEN)}; |         sc::gui::Window& window {sc::gui::Window::new_window("Living Art", SDL_WINDOW_FULLSCREEN_DESKTOP)}; | ||||||
|         main_window = &window; |         main_window = &window; | ||||||
|         window.add_event_handler(handle_window_resize, SDL_WINDOWEVENT_RESIZED); |         window.add_event_handler(handle_window_resize, SDL_WINDOWEVENT_RESIZED); | ||||||
|         window.add_event_handler(handle_window_resize, SDL_WINDOWEVENT_SIZE_CHANGED); |         window.add_event_handler(handle_window_resize, SDL_WINDOWEVENT_SIZE_CHANGED); | ||||||
|  |         SDL_ShowCursor(SDL_DISABLE); | ||||||
|  |  | ||||||
|         // setup sdl surface and connect to cairo |         // setup sdl surface and connect to cairo | ||||||
|         create_image(WIDTH, HEIGHT); |         create_image(WIDTH, HEIGHT); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Bob Polis
					Bob Polis