Rename DrawText to DrawTextFixSize and create DrawText

This commit is contained in:
2025-04-09 15:58:41 +05:00
parent 593c4a6596
commit e49aa61c67
5 changed files with 60 additions and 21 deletions

View File

@@ -27,12 +27,16 @@ enum TextScale
enum DrawTextEncoding
{
cp866 = 1,
cp866_8x16 = 2,
utf8 = 3,
utf16 = 4
};
#define DEFAULT_ENCODING cp866
int syscalls_drawLine(lua_State* L);
int syscalls_drawText(lua_State* L);
int syscalls_drawTextFixSize(lua_State* L);
int syscalls_drawRectangle(lua_State* L);
int syscalls_ReadPoint(lua_State* L);
int syscalls_screenSize(lua_State* L);
@@ -99,6 +103,9 @@ inline void syscalls_push_Encoding(lua_State* L)
lua_pushinteger(L, cp866);
lua_setfield(L, -2, "cp866");
lua_pushinteger(L, cp866_8x16);
lua_setfield(L, -2, "cp866_8x16");
lua_pushinteger(L, utf8);
lua_setfield(L, -2, "utf8");