From 87d771854565adb78f3011a9f784d6980bdf7f52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miloslav=20=C4=8C=C3=AD=C5=BE?= Date: Sun, 23 Jun 2019 23:26:52 +0200 Subject: [PATCH] Optimize examples --- programs/city.c | 3 --- programs/level.c | 3 --- 2 files changed, 6 deletions(-) diff --git a/programs/city.c b/programs/city.c index efae9bf..9ba0cb1 100644 --- a/programs/city.c +++ b/programs/city.c @@ -83,9 +83,6 @@ void clearScreen() static inline void setPixel(int x, int y, uint8_t red, uint8_t green, uint8_t blue) { - if (x < 0 || x >= S3L_RESOLUTION_X || y < 0 || y >= S3L_RESOLUTION_Y) - return; - uint32_t r = red & 0x000000FF; r = r << 24; diff --git a/programs/level.c b/programs/level.c index 73eb2af..4641e4f 100644 --- a/programs/level.c +++ b/programs/level.c @@ -55,9 +55,6 @@ void clearScreen() static inline void setPixel(int x, int y, uint8_t red, uint8_t green, uint8_t blue) { - if (x < 0 || x >= S3L_RESOLUTION_X || y < 0 || y >= S3L_RESOLUTION_Y) - return; - uint32_t r = red & 0x000000FF; r = r << 24;