From c35afed3cf717f1c473fb93edc3f052d529052f3 Mon Sep 17 00:00:00 2001 From: Bad Diode Date: Thu, 15 Apr 2021 16:08:44 +0200 Subject: Minor changes to test code --- src/main.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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) { } // Bresenham's testing - put_text(8, 8, COLOR_RED, "Testing Bresenham's algorithm"); + for (size_t i = 0; i < SCREEN_WIDTH; i += 8) { + draw_fill_rect(i, 7, 0 + i + 7, 16, COLOR_RED); + } + put_text(8, 8, COLOR_BLACK, "Lines and rectangles"); + draw_fill_rect(69, 29, SCREEN_WIDTH - 69, SCREEN_HEIGHT - 29, COLOR_BLACK); for (size_t i = 70; i <= SCREEN_WIDTH - 70; i += 5) { int x0 = i; int y0 = 30; -- cgit v1.2.1