| 234 | } |
| 235 | |
| 236 | static int design_draw_shape(lua_State *L) { |
| 237 | if (arr.size() == 0) { |
| 238 | design_load_shape(L); |
| 239 | } |
| 240 | |
| 241 | for (auto x : arr) { |
| 242 | for (auto y : x.second) { |
| 243 | Screen::Pen pen; |
| 244 | get_pen(&pen, NULL, x.first, y.first, arr); |
| 245 | df::coord2d pos(x.first - *window_x, y.first - *window_y); |
| 246 | Screen::paintTile(pen, pos.x, pos.y, true); |
| 247 | } |
| 248 | } |
| 249 | |
| 250 | return 0; |
| 251 | } |
| 252 | |
| 253 | static int design_draw_points(lua_State *L) { |
| 254 | bool is_graphics_mode = Screen::inGraphicsMode(); |
nothing calls this directly
no test coverage detected