From a77f00d665bdc9acb663b81ff9be0727809d0797 Mon Sep 17 00:00:00 2001 From: Bertrand Songis Date: Fri, 3 Aug 2018 23:00:42 +0200 Subject: [PATCH] Some bitmaps shifted by 2 pixels on load --- radio/src/gui/480x272/bitmapbuffer.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/radio/src/gui/480x272/bitmapbuffer.h b/radio/src/gui/480x272/bitmapbuffer.h index 19074f8f7..84dc6654c 100644 --- a/radio/src/gui/480x272/bitmapbuffer.h +++ b/radio/src/gui/480x272/bitmapbuffer.h @@ -61,13 +61,8 @@ class BitmapBufferBase } BitmapBufferBase(uint8_t format, T * data): - format(format), - data(data), - data_end(NULL) + BitmapBufferBase(format, *((uint16_t*)data), *(((uint16_t*)data)+1), data + 2) { - width = *((uint16_t*)data); - height = *(((uint16_t*)data)+1); - data_end = data + 4 + (width * height); } inline uint8_t getFormat() const