| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium OS Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium OS Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "monitor_reconfig/monitor_reconfigure_main.h" | 5 #include "monitor_reconfig/monitor_reconfigure_main.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <cstdio> | 8 #include <cstdio> |
| 9 #include <cstdlib> | 9 #include <cstdlib> |
| 10 | 10 |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 &external_resolution, | 160 &external_resolution, |
| 161 &screen_resolution)); | 161 &screen_resolution)); |
| 162 SetDeviceResolution(lcd_output_->name, lcd_resolution); | 162 SetDeviceResolution(lcd_output_->name, lcd_resolution); |
| 163 SetDeviceResolution(external_output_->name, external_resolution); | 163 SetDeviceResolution(external_output_->name, external_resolution); |
| 164 SetScreenResolution(screen_resolution); | 164 SetScreenResolution(screen_resolution); |
| 165 } | 165 } |
| 166 | 166 |
| 167 } // end namespace monitor_reconfig | 167 } // end namespace monitor_reconfig |
| 168 | 168 |
| 169 int main(int argc, char** argv) { | 169 int main(int argc, char** argv) { |
| 170 logging::InitLogging(NULL, |
| 171 logging::LOG_ONLY_TO_SYSTEM_DEBUG_LOG, |
| 172 logging::DONT_LOCK_LOG_FILE, |
| 173 logging::APPEND_TO_OLD_LOG_FILE); |
| 170 Display* display = XOpenDisplay(NULL); | 174 Display* display = XOpenDisplay(NULL); |
| 171 CHECK(display) << "Could not open display"; | 175 CHECK(display) << "Could not open display"; |
| 172 | 176 |
| 173 Window window = RootWindow(display, DefaultScreen(display)); | 177 Window window = RootWindow(display, DefaultScreen(display)); |
| 174 XRRScreenResources* screen_info = XRRGetScreenResources(display, window); | 178 XRRScreenResources* screen_info = XRRGetScreenResources(display, window); |
| 175 monitor_reconfig::MonitorReconfigureMain main_app(display, screen_info); | 179 monitor_reconfig::MonitorReconfigureMain main_app(display, screen_info); |
| 176 | 180 |
| 177 main_app.Run(); | 181 main_app.Run(); |
| 178 return 0; | 182 return 0; |
| 179 } | 183 } |
| OLD | NEW |