Allow resolution to be configured on command line. Default to 1280x1024.

This commit is contained in:
Glenn Watson 2014-09-18 08:43:03 +10:00
parent 178843456f
commit c33f18b7df
7 changed files with 31 additions and 9 deletions

View file

@ -6,6 +6,7 @@
use azure;
use command_line::command_line_init;
use eutil::fptr_is_null;
use geom::size::TypedSize2D;
use libc::{c_int, c_void};
use native;
use servo;
@ -68,6 +69,7 @@ pub extern "C" fn cef_run_message_loop() {
enable_text_antialiasing: true,
trace_layout: false,
devtools_server: false,
initial_window_size: TypedSize2D(1280, 1024),
};
native::start(0, 0 as *const *const u8, proc() {
servo::run(opts);