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

@ -142,7 +142,8 @@ impl IOCompositor {
constellation_chan: ConstellationChan,
time_profiler_chan: TimeProfilerChan,
memory_profiler_chan: MemoryProfilerChan) -> IOCompositor {
let window: Rc<Window> = WindowMethods::new(app, opts.output_file.is_none());
let window: Rc<Window> = WindowMethods::new(app, opts.output_file.is_none(),
opts.initial_window_size);
// Create an initial layer tree.
//