Mercurial > molko
diff libmlk-ui/mlk/ui/ui.c @ 547:c7664b679a95
misc: remove error codes for now
author | David Demelier <markand@malikania.fr> |
---|---|
date | Mon, 06 Mar 2023 20:03:00 +0100 |
parents | d49a05e7a5b5 |
children | c027304ced27 |
line wrap: on
line diff
--- a/libmlk-ui/mlk/ui/ui.c Mon Mar 06 20:01:00 2023 +0100 +++ b/libmlk-ui/mlk/ui/ui.c Mon Mar 06 20:03:00 2023 +0100 @@ -91,10 +91,10 @@ assert(text && strlen(text) > 0); struct mlk_texture texture; - int x, y, err; + int x, y; - if ((err = mlk_font_render(font, &texture, text, color)) < 0) - mlk_tracef("mlk_font_render: %s", mlk_err_string(err)); + if (mlk_font_render(font, &texture, text, color) < 0) + mlk_tracef("unable to render text: %s", mlk_err()); else { mlk_align(align, &x, &y, texture.w, texture.h, px, py, pw, ph); mlk_texture_draw(&texture, x, y);