summaryrefslogtreecommitdiff
path: root/client/src/state.rs
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/state.rs')
-rw-r--r--client/src/state.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/client/src/state.rs b/client/src/state.rs
index e8188d8..a370264 100644
--- a/client/src/state.rs
+++ b/client/src/state.rs
@@ -26,6 +26,9 @@ impl<'a> State<'a> {
warn!("draw failed: {e:?}");
}
}
+ pub fn resize(&mut self, width: u32, height: u32) {
+ self.renderer.resize(width, height);
+ }
pub fn update(&mut self) -> Result<()> {
for p in self.network.packet_recv.try_iter() {
self.downloader.packet(&p)?;