From b39da5ff5e2fed92b173f829eb52ce7bfa3caf08 Mon Sep 17 00:00:00 2001 From: Christian Kroll Date: Wed, 17 Aug 2011 03:35:36 +0000 Subject: [PATCH] Fixed build errors on borgs with asymmetric resolutions. --- games/snake/snake_game.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/games/snake/snake_game.c b/games/snake/snake_game.c index b53f430..2446d0f 100644 --- a/games/snake/snake_game.c +++ b/games/snake/snake_game.c @@ -108,15 +108,15 @@ static void snake_drawBorder(void) setpixel((pixel){NUM_COLS -1, i}, SNAKE_COLOR_BORDER); } #else - for (uint8_t x = MAX_COLS; x--;) + for (uint8_t x = NUM_COLS; x--;) { setpixel((pixel){x, 0}, SNAKE_COLOR_BORDER); setpixel((pixel){x, NUM_ROWS - 1}, SNAKE_COLOR_BORDER); } - for (uint8_t y = MAX_ROWS; y--;) + for (uint8_t y = NUM_ROWS; y--;) { setpixel((pixel){0, y}, SNAKE_COLOR_BORDER); - setpixel((pixel){NUM_COLS -1, y}, SNAKE_COLOR_BORDER); + setpixel((pixel){NUM_COLS - 1, y}, SNAKE_COLOR_BORDER); } #endif }