From 04d4363607dc28932cd0453ad25739d1f714233f Mon Sep 17 00:00:00 2001 From: Bertrand Songis Date: Wed, 15 Jan 2020 17:21:56 +0100 Subject: [PATCH] Add the definition LCD_VERTICAL_INVERT --- radio/src/thirdparty/libopenui/src/bitmapbuffer.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/radio/src/thirdparty/libopenui/src/bitmapbuffer.h b/radio/src/thirdparty/libopenui/src/bitmapbuffer.h index c4e6b6d53..d49225f07 100755 --- a/radio/src/thirdparty/libopenui/src/bitmapbuffer.h +++ b/radio/src/thirdparty/libopenui/src/bitmapbuffer.h @@ -36,7 +36,7 @@ constexpr uint8_t STASHED = 0x33; #define APPLY_OFFSET() x += offsetX; y += offsetY #define RESTORE_OFFSET() this->offsetX = offsetX, this->offsetY = offsetY -#if defined(PCBX10) && !defined(SIMU) +#if defined(LCD_VERTICAL_INVERT) #define MOVE_PIXEL_RIGHT(p, count) p -= count #else #define MOVE_PIXEL_RIGHT(p, count) p += count @@ -156,7 +156,7 @@ class BitmapBufferBase inline const pixel_t * getPixelPtr(coord_t x, coord_t y) const { -#if defined(PCBX10) && !defined(SIMU) +#if defined(LCD_VERTICAL_INVERT) x = _width - x - 1; y = _height - y - 1; #endif @@ -294,7 +294,7 @@ class BitmapBuffer: public BitmapBufferBase inline const pixel_t * getPixelPtr(coord_t x, coord_t y) const { -#if defined(PCBX10) && !defined(SIMU) +#if defined(LCD_VERTICAL_INVERT) x = _width - x - 1; y = _height - y - 1; #endif @@ -303,7 +303,7 @@ class BitmapBuffer: public BitmapBufferBase inline pixel_t * getPixelPtr(coord_t x, coord_t y) { -#if defined(PCBX10) && !defined(SIMU) +#if defined(LCD_VERTICAL_INVERT) x = _width - x - 1; y = _height - y - 1; #endif