check if a pixel is in the lua canvas
| 3550 | } |
| 3551 | // check if a pixel is in the lua canvas |
| 3552 | static inline bool gui_check_boundary(int x, int y) { |
| 3553 | return !(x < 0 || x >= LUA_SCREEN_WIDTH || y < 0 || y >= LUA_SCREEN_HEIGHT); |
| 3554 | } |
| 3555 | |
| 3556 | // write a pixel to gui_data (do not check boundaries for speedup) |
| 3557 | static inline void gui_drawpixel_fast(int x, int y, uint32 colour) { |
no outgoing calls
no test coverage detected