mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-27 04:41:23 +00:00
dupx and dupy are important for Lua too
This commit is contained in:
parent
eba382df1b
commit
782f6e9330
1 changed files with 18 additions and 0 deletions
|
@ -528,6 +528,22 @@ static int libd_height(lua_State *L)
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int libd_dupx(lua_State *L)
|
||||||
|
{
|
||||||
|
HUDONLY
|
||||||
|
lua_pushinteger(L, vid.dupx); // push integral scale (patch scale)
|
||||||
|
lua_pushfixed(L, vid.fdupx); // push fixed point scale (position scale)
|
||||||
|
return 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
static int libd_dupy(lua_State *L)
|
||||||
|
{
|
||||||
|
HUDONLY
|
||||||
|
lua_pushinteger(L, vid.dupy); // push integral scale (patch scale)
|
||||||
|
lua_pushfixed(L, vid.fdupy); // push fixed point scale (position scale)
|
||||||
|
return 2;
|
||||||
|
}
|
||||||
|
|
||||||
static int libd_renderer(lua_State *L)
|
static int libd_renderer(lua_State *L)
|
||||||
{
|
{
|
||||||
HUDONLY
|
HUDONLY
|
||||||
|
@ -552,6 +568,8 @@ static luaL_Reg lib_draw[] = {
|
||||||
{"getColormap", libd_getColormap},
|
{"getColormap", libd_getColormap},
|
||||||
{"width", libd_width},
|
{"width", libd_width},
|
||||||
{"height", libd_height},
|
{"height", libd_height},
|
||||||
|
{"dupx", libd_dupx},
|
||||||
|
{"dupy", libd_dupy},
|
||||||
{"renderer", libd_renderer},
|
{"renderer", libd_renderer},
|
||||||
{NULL, NULL}
|
{NULL, NULL}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue