From 81fbe89193673308db852ca67b29705b13633227 Mon Sep 17 00:00:00 2001 From: Mingye Wang Date: Tue, 13 Nov 2018 13:07:42 -0500 Subject: [PATCH] Arduboy2: static constexpr bool validPixel --- src/Arduboy2.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Arduboy2.h b/src/Arduboy2.h index ade9fc0..0f64a61 100644 --- a/src/Arduboy2.h +++ b/src/Arduboy2.h @@ -440,7 +440,7 @@ class Arduboy2Base : public Arduboy2Core * This function returns true if x is in the interval [0, WIDTH) and y is in * the interval [0, HEIGHT). */ - bool validPixel(int16_t x, int16_t y) { + static constexpr bool validPixel(int16_t x, int16_t y) { return !(x < 0 || x > (WIDTH-1) || y < 0 || y > (HEIGHT-1)); }