From a6d18a320c7f9562a15b808fbc93a3c525942ef9 Mon Sep 17 00:00:00 2001 From: meehl <12648828+meehl@users.noreply.github.com> Date: Sat, 15 Aug 2026 19:19:34 +0200 Subject: [PATCH] Fix comment --- src/fonts/atlas.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fonts/atlas.rs b/src/fonts/atlas.rs index 4d034bb..384c6ea 100644 --- a/src/fonts/atlas.rs +++ b/src/fonts/atlas.rs @@ -78,14 +78,14 @@ impl FontAtlas { { let layer = &mut self.layers[idx]; - // start new row if new allocation doesn't fit current row + // start new row if new allocation doesn't fit on current row if layer.cursor.x + requested_size.width > self.layer_size.width { layer.cursor.x = 0; layer.cursor.y += layer.current_row_height + PADDING; layer.current_row_height = 0; } - // add or evict layer if new allocation doesn't fit on this layer + // add new layer if new allocation doesn't fit on current layer if layer.cursor.y + requested_size.height > self.layer_size.height { if (self.layers.len() as u32) < self.max_layers { self.push_layer();