(old) gui.box(x1, y1, x2, y2, color)
| 4063 | |
| 4064 | // (old) gui.box(x1, y1, x2, y2, color) |
| 4065 | FCEU_MAYBE_UNUSED |
| 4066 | static 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 | |
| 4090 | static int gui_parsecolor(lua_State *L) |
| 4091 | { |
nothing calls this directly
no test coverage detected