summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBad Diode <bd@badd10de.dev>2021-04-15 16:08:44 +0200
committerBad Diode <bd@badd10de.dev>2021-04-15 16:08:44 +0200
commitc35afed3cf717f1c473fb93edc3f052d529052f3 (patch)
tree522b6b7f5a9519757a060f691c2bd61204f217c5
parentedee7f1f66e7df2110069057289210c6bfbd272f (diff)
downloadgba-experiments-c35afed3cf717f1c473fb93edc3f052d529052f3.tar.gz
gba-experiments-c35afed3cf717f1c473fb93edc3f052d529052f3.zip
Minor changes to test code
-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;