summaryrefslogtreecommitdiff
path: root/src/text.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/text.h')
-rw-r--r--src/text.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/text.h b/src/text.h
index a823bd3..216a842 100644
--- a/src/text.h
+++ b/src/text.h
@@ -61,7 +61,6 @@ enum font_error_e wayc_font_render(struct font_s* font, codepoint_t codepoint,
struct glyph_s* glyph);
static inline enum font_error_e wayc_font_flush(struct font_s* font) {
enum atlas_error_e atlas_err = wayc_atlas_flush(&font->atlas);
- return atlas_err == ATLAS_ERROR_NONE ? FONT_ERROR_NONE
- : FONT_ERROR_ATLAS_FAILED;
+ return (enum font_error_e)wayc_max(atlas_err, FONT_ERROR_NONE);
}
void wayc_font_deinit(struct font_s* font);