From 4c2711cfd0de5a7c2f5c671397fce8db5a4c4d4e Mon Sep 17 00:00:00 2001 From: Simon Fels Date: Tue, 8 Nov 2016 07:46:17 +0100 Subject: [PATCH] Drop superflous second display detection --- src/anbox/ubuntu/window_creator.cpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/anbox/ubuntu/window_creator.cpp b/src/anbox/ubuntu/window_creator.cpp index 09d37f3..80522ae 100644 --- a/src/anbox/ubuntu/window_creator.cpp +++ b/src/anbox/ubuntu/window_creator.cpp @@ -37,16 +37,6 @@ WindowCreator::WindowCreator(const std::shared_ptr &input_manage if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_EVENTS) < 0) BOOST_THROW_EXCEPTION(std::runtime_error("Failed to initialize SDL")); -#if 0 - SDL_DisplayMode display_mode; - // FIXME statically just check the first (primary) display for its mode; - // once we get multi-monitor support we need to do this better. - if (SDL_GetCurrentDisplayMode(0, &display_mode) == 0) { - display_info_.horizontal_resolution = display_mode.w; - display_info_.vertical_resolution = display_mode.h; - } -#endif - event_thread_ = std::thread(&WindowCreator::process_events, this); SDL_DisplayMode display_mode;