Bugfix lua font_getstringsize ignoring supplied fontid

Change-Id: I62c334300f427670b237957553176302a8589fe7
This commit is contained in:
William Wilgus 2025-12-14 17:51:29 -05:00
parent b9ca4ba456
commit 2398616d63

View file

@ -1606,7 +1606,7 @@ RB_WRAP(font_getstringsize)
if (fontnumber == FONT_UI)
fontnumber = rb->global_status->font_id[SCREEN_MAIN];
else
else if (fontnumber < 0)
fontnumber = FONT_SYSFIXED;
if lua_isnoneornil(L, 2)