| 1038 | } |
| 1039 | |
| 1040 | static int dfhack_penarray_draw(lua_State *L) |
| 1041 | { |
| 1042 | PenArray *parr = check_penarray_native(L, 1); |
| 1043 | unsigned int x = (unsigned int)luaL_checkint(L, 2); |
| 1044 | unsigned int y = (unsigned int)luaL_checkint(L, 3); |
| 1045 | unsigned int w = (unsigned int)luaL_checkint(L, 4); |
| 1046 | unsigned int h = (unsigned int)luaL_checkint(L, 5); |
| 1047 | unsigned int bufx = (unsigned int)luaL_optint(L, 6, 0); |
| 1048 | unsigned int bufy = (unsigned int)luaL_optint(L, 7, 0); |
| 1049 | parr->draw(x, y, w, h, bufx, bufy); |
| 1050 | return 0; |
| 1051 | } |
| 1052 | |
| 1053 | static const luaL_Reg dfhack_penarray_funcs[] = { |
| 1054 | { "new", dfhack_penarray_new }, |
nothing calls this directly
no test coverage detected