11uint8_t
geoclip_rect(int32_t *posx, int32_t *posy, int32_t *width, int32_t *height)
23 if ((*posx + *width) > 240) {
27 if ((*posy + *height) > 160) {
28 *height = 160 - *posy;
39 return (*height > 0) && (*width > 0);
51uint8_t
geoclip_line(int32_t *x1, int32_t *y1, int32_t *x2, int32_t *y2)
uint8_t geoclip_rect(int32_t *posx, int32_t *posy, int32_t *width, int32_t *height)
adjusts a rectangle within the screen
uint8_t geoclip_line(int32_t *x1, int32_t *y1, int32_t *x2, int32_t *y2)
adjusts a line within the screen