From f8b86cce22927bb6fa2e916745b1b32063a95929 Mon Sep 17 00:00:00 2001 From: Timmy Xiao <34635512+tzx@users.noreply.github.com> Date: Sat, 27 Jan 2024 15:00:43 -0800 Subject: [PATCH] Don't hardcode egl sizes --- window/src/os/wayland/window.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/window/src/os/wayland/window.rs b/window/src/os/wayland/window.rs index d59993987..9b12eb55b 100644 --- a/window/src/os/wayland/window.rs +++ b/window/src/os/wayland/window.rs @@ -562,8 +562,9 @@ impl WaylandWindowInner { let object_id = window.wl_surface().id(); wegl_surface = Some(WlEglSurface::new( - object_id, // TODO: remove the hardcoded stuff - 100, 100, + object_id, + self.dimensions.pixel_width as i32, + self.dimensions.pixel_height as i32, )?); log::trace!("WEGL Surface here {:?}", wegl_surface);