diff options
| author | Fabrice <fabrice@schaub-dev.xyz> | 2026-02-13 07:17:00 +0100 |
|---|---|---|
| committer | Fabrice <fabrice@schaub-dev.xyz> | 2026-02-13 07:17:00 +0100 |
| commit | 2c89955b4cdbed8814f3b618f5a79a4173c16e17 (patch) | |
| tree | 354ccad68cc33eae6bd6c25642bcc5db9e49a196 /src | |
| parent | 1d5b0658334c6f63b99f1463d50b10cd897d664a (diff) | |
use max
Diffstat (limited to 'src')
| -rw-r--r-- | src/text.h | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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); |
