| 91 | } |
| 92 | |
| 93 | static void |
| 94 | drawLine(SDL_Surface *screen, float x0, float y0, float x1, float y1, unsigned int col) |
| 95 | { |
| 96 | float t; |
| 97 | for (t = 0; t < 1; t += (float) (1.0f / SDL_max(SDL_fabs(x0 - x1), SDL_fabs(y0 - y1)))) { |
| 98 | setpix(screen, x1 + t * (x0 - x1), y1 + t * (y0 - y1), col); |
| 99 | } |
| 100 | } |
| 101 | |
| 102 | static void |
| 103 | drawCircle(SDL_Surface *screen, float x, float y, float r, unsigned int c) |
no test coverage detected