diff --git a/src/Arduboy2.cpp b/src/Arduboy2.cpp index cedae7f..4d094bc 100644 --- a/src/Arduboy2.cpp +++ b/src/Arduboy2.cpp @@ -287,12 +287,10 @@ void Arduboy2Base::clear() void Arduboy2Base::drawPixel(int16_t x, int16_t y, uint8_t color) { - #ifdef PIXEL_SAFE_MODE if (x < 0 || x > (WIDTH-1) || y < 0 || y > (HEIGHT-1)) { return; } - #endif uint16_t row_offset; uint8_t bit; @@ -331,12 +329,10 @@ void Arduboy2Base::drawPixel(int16_t x, int16_t y, uint8_t color) // For reference, this is the C++ equivalent void Arduboy2Base::drawPixel(int16_t x, int16_t y, uint8_t color) { - #ifdef PIXEL_SAFE_MODE if (x < 0 || x > (WIDTH-1) || y < 0 || y > (HEIGHT-1)) { return; } - #endif uint16_t row_offset; uint8_t bit; diff --git a/src/Arduboy2.h b/src/Arduboy2.h index a558d2e..7403355 100644 --- a/src/Arduboy2.h +++ b/src/Arduboy2.h @@ -74,10 +74,6 @@ */ #define EEPROM_STORAGE_SPACE_START 16 -// If defined, it is safe to draw outside of the screen boundaries. -// Pixels that would exceed the display limits will be ignored. -#define PIXEL_SAFE_MODE - // pixel colors #define BLACK 0 /**< Color value for an unlit pixel for draw functions. */ #define WHITE 1 /**< Color value for a lit pixel for draw functions. */