-
-static void draw_cursor(int x, int y)
-{
- int i;
- uint32_t *fbptr = framebuf + y * win_width + x;
-
- for(i=0; i<3; i++) {
- int offs = i + 1;
- if(y > offs) fbptr[-win_width * offs] ^= 0xffffff;
- if(y < win_height - offs - 1) fbptr[win_width * offs] ^= 0xffffff;
- if(x > offs) fbptr[-offs] ^= 0xffffff;
- if(x < win_width - offs - 1) fbptr[offs] ^= 0xffffff;
- }
-}