mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-16 23:08:05 +08:00
Create window with full hd size
This commit is contained in:
committed by
Keavon Chambers
parent
8cd161f087
commit
dccb5235c0
@@ -97,7 +97,11 @@ impl ApplicationIo for WasmApplicationIo {
|
||||
#[cfg(not(target_arch = "wasm32"))]
|
||||
fn create_surface(&self) -> SurfaceHandle<Self::Surface> {
|
||||
let event_loop = winit::event_loop::EventLoop::new();
|
||||
let window = winit::window::WindowBuilder::new().with_title("Graphite").build(&event_loop).unwrap();
|
||||
let window = winit::window::WindowBuilder::new()
|
||||
.with_title("Graphite")
|
||||
.with_inner_size(winit::dpi::PhysicalSize::new(1920, 1080))
|
||||
.build(&event_loop)
|
||||
.unwrap();
|
||||
SurfaceHandle {
|
||||
surface_id: SurfaceId(window.id().into()),
|
||||
surface: window,
|
||||
|
||||
Reference in New Issue
Block a user