aboutsummaryrefslogtreecommitdiff
path: root/src/graphics/text.c
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-09-10 22:26:12 +0200
committerdec05eba <dec05eba@protonmail.com>2024-09-10 22:26:12 +0200
commit0b1ec6b28231f874590fe4df52aacffdca0974ac (patch)
tree669d3575830fdc177634a71ea3cff598707599b3 /src/graphics/text.c
parent65cf862db1ef94180cd6773b43d4dbad8623ee4a (diff)
fix mgl_text_set_max_width
Diffstat (limited to 'src/graphics/text.c')
-rw-r--r--src/graphics/text.c2
1 files changed, 1 insertions, 1 deletions
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;
}