Create window with full hd size

This commit is contained in:
Dennis Kobert
2023-06-16 20:35:42 +02:00
committed by Keavon Chambers
parent 8cd161f087
commit dccb5235c0
3 changed files with 11 additions and 8 deletions

View File

@@ -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,