MCPcopy Create free account
hub / github.com/TASEmulators/fceux / gui_box_old

Function gui_box_old

src/lua-engine.cpp:4065–4088  ·  view source on GitHub ↗

(old) gui.box(x1, y1, x2, y2, color)

Source from the content-addressed store, hash-verified

4063
4064// (old) gui.box(x1, y1, x2, y2, color)
4065FCEU_MAYBE_UNUSED
4066static int gui_box_old(lua_State *L) {
4067
4068 int x1,y1,x2,y2;
4069 uint32 colour;
4070
4071 x1 = luaL_checkinteger(L,1);
4072 y1 = luaL_checkinteger(L,2);
4073 x2 = luaL_checkinteger(L,3);
4074 y2 = luaL_checkinteger(L,4);
4075 colour = gui_getcolour(L,5);
4076
4077// if (!gui_check_boundary(x1, y1))
4078// luaL_error(L,"bad coordinates");
4079//
4080// if (!gui_check_boundary(x2, y2))
4081// luaL_error(L,"bad coordinates");
4082
4083 gui_prepare();
4084
4085 gui_drawbox_internal(x1, y1, x2, y2, colour);
4086
4087 return 0;
4088}
4089
4090static int gui_parsecolor(lua_State *L)
4091{

Callers

nothing calls this directly

Calls 4

luaL_checkintegerFunction · 0.85
gui_getcolourFunction · 0.85
gui_prepareFunction · 0.85
gui_drawbox_internalFunction · 0.85

Tested by

no test coverage detected