1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-24 13:52:55 +03:00

Don't hardcode egl sizes

This commit is contained in:
Timmy Xiao 2024-01-27 15:00:43 -08:00 committed by Wez Furlong
parent 6b73db40e9
commit f8b86cce22
No known key found for this signature in database
GPG Key ID: 7A7F66A31EC9B387

View File

@ -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);