diff --git a/graphics/virtio-gpud/src/scheme.rs b/graphics/virtio-gpud/src/scheme.rs index b72f1aa5f6..e9c1bef067 100644 --- a/graphics/virtio-gpud/src/scheme.rs +++ b/graphics/virtio-gpud/src/scheme.rs @@ -38,14 +38,6 @@ pub struct Display { } impl Display { - pub fn new() -> Self { - Self { - // FIXME use the actual screen size - width: 1920, - height: 1080, - } - } - async fn get_fpath(&self, buffer: &mut [u8]) -> Result { let path = format!("display.virtio-gpu:3.0/{}/{}", self.width, self.height); @@ -271,7 +263,10 @@ impl<'a> GpuScheme<'a> { info.rect().height ); - result.push(Display::new()); + result.push(Display { + width: info.rect().width, + height: info.rect().height, + }); } Ok(result)