From 0b1ec6b28231f874590fe4df52aacffdca0974ac Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 10 Sep 2024 22:26:12 +0200 Subject: fix mgl_text_set_max_width --- src/graphics/text.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/graphics') diff --git a/src/graphics/text.c b/src/graphics/text.c index f635bf6..9fa52f6 100644 --- a/src/graphics/text.c +++ b/src/graphics/text.c @@ -152,7 +152,7 @@ void mgl_text_set_color(mgl_text *self, mgl_color color) { } void mgl_text_set_max_width(mgl_text *self, float max_width) { - if(float_abs(max_width - self->max_width < 0.001)) + if(float_abs(max_width - self->max_width) > 0.01) self->bounds_dirty = true; self->max_width = max_width; } -- cgit v1.2.3