mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2025-08-04 05:18:19 +00:00
Reduce window size for native applications to 800x600
This commit is contained in:
parent
d0722f6985
commit
e03da35a83
2 changed files with 2 additions and 2 deletions
|
@ -109,7 +109,7 @@ impl ApplicationIo for WasmApplicationIo {
|
|||
let event_loop = winit::event_loop::EventLoop::new();
|
||||
let window = winit::window::WindowBuilder::new()
|
||||
.with_title("Graphite")
|
||||
.with_inner_size(winit::dpi::PhysicalSize::new(1920, 1080))
|
||||
.with_inner_size(winit::dpi::PhysicalSize::new(800, 600))
|
||||
.build(&event_loop)
|
||||
.unwrap();
|
||||
let window = Arc::new(window);
|
||||
|
|
|
@ -456,7 +456,7 @@ impl gpu_executor::GpuExecutor for WgpuExecutor {
|
|||
view_formats: vec![],
|
||||
};
|
||||
surface.configure(&self.context.device, &config);
|
||||
self.surface_config.set(Some(config.clone()));
|
||||
self.surface_config.set(Some(config));
|
||||
|
||||
let surface_id = window.surface_id;
|
||||
Ok(SurfaceHandle { surface_id, surface })
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue