From 5630b919ea8cd4432fc3a9ce722e37a9e2740b40 Mon Sep 17 00:00:00 2001 From: Fabrice Date: Thu, 12 Feb 2026 22:20:50 +0100 Subject: add detail error --- src/text.cc | 2 +- src/text.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/text.cc b/src/text.cc index 6753061..e6ce175 100644 --- a/src/text.cc +++ b/src/text.cc @@ -129,7 +129,7 @@ enum font_error_e wayc_font_init(struct font_s* font, struct atlas_s atlas; enum atlas_error_e aterr = wayc_atlas_init(&atlas, atlas_width, atlas_height, SG_PIXELFORMAT_R8); - if (aterr) return FONT_ERROR_LOAD_FACE; + if (aterr) return FONT_ERROR_ATLAS_FAILED; font->face = face; font->font_size = font_size; diff --git a/src/text.h b/src/text.h index 476bfe0..6b74e34 100644 --- a/src/text.h +++ b/src/text.h @@ -32,7 +32,7 @@ void wayc_font_context_deinit(struct font_context_s* context); enum font_error_e : u8 { FONT_ERROR_NONE = 0, FONT_ERROR_LOAD_FACE, - + FONT_ERROR_ATLAS_FAILED, }; struct font_s { -- cgit v1.2.3