summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/main.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 32c4170..e8a5ea0 100644
--- a/src/main.c
+++ b/src/main.c
@@ -247,8 +247,12 @@ int main(void) {
247 } 247 }
248 248
249 // Bresenham's testing 249 // Bresenham's testing
250 put_text(8, 8, COLOR_RED, "Testing Bresenham's algorithm"); 250 for (size_t i = 0; i < SCREEN_WIDTH; i += 8) {
251 draw_fill_rect(i, 7, 0 + i + 7, 16, COLOR_RED);
252 }
253 put_text(8, 8, COLOR_BLACK, "Lines and rectangles");
251 254
255 draw_fill_rect(69, 29, SCREEN_WIDTH - 69, SCREEN_HEIGHT - 29, COLOR_BLACK);
252 for (size_t i = 70; i <= SCREEN_WIDTH - 70; i += 5) { 256 for (size_t i = 70; i <= SCREEN_WIDTH - 70; i += 5) {
253 int x0 = i; 257 int x0 = i;
254 int y0 = 30; 258 int y0 = 30;