Merge pull request #363 from lockie/master

allegro5 demo: Fix warning
This commit is contained in:
dumblob 2021-12-14 09:26:59 +01:00 committed by GitHub
commit 93940ccbd0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -98,6 +98,7 @@ NK_API void nk_allegro5_del_image(struct nk_image* image)
static float
nk_allegro5_font_get_text_width(nk_handle handle, float height, const char *text, int len)
{
NK_UNUSED(height);
NkAllegro5Font *font = (NkAllegro5Font*)handle.ptr;
if (!font || !text) {
return 0;