mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Allow resolution to be configured on command line. Default to 1280x1024.
This commit is contained in:
parent
178843456f
commit
c33f18b7df
7 changed files with 31 additions and 9 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue