From 624ff5ef872cd3ffa4868394fc3869e3ba459df5 Mon Sep 17 00:00:00 2001 From: Mads Marquart Date: Wed, 4 Sep 2024 15:52:20 +0200 Subject: [PATCH] Fix note of why we call `resize` --- examples/fruit.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/fruit.rs b/examples/fruit.rs index cad49a55..cecd4afc 100644 --- a/examples/fruit.rs +++ b/examples/fruit.rs @@ -23,7 +23,8 @@ fn main() { let mut surface = softbuffer::Surface::new(&context, window.clone()).unwrap(); // Intentionally only set the size of the surface once, at creation. - // This is needed if the window chooses to ignore the size we passed in above. + // This is needed if the window chooses to ignore the size we passed in above, and for the + // platforms softbuffer supports that don't yet extract the size from the window. surface .resize( NonZeroU32::new(width).unwrap(),