Some bitmaps shifted by 2 pixels on load

This commit is contained in:
Bertrand Songis
2018-08-03 23:00:42 +02:00
parent cdfdcf6d13
commit a77f00d665
+1 -6
View File
@@ -61,13 +61,8 @@ class BitmapBufferBase
} }
BitmapBufferBase(uint8_t format, T * data): BitmapBufferBase(uint8_t format, T * data):
format(format), BitmapBufferBase(format, *((uint16_t*)data), *(((uint16_t*)data)+1), data + 2)
data(data),
data_end(NULL)
{ {
width = *((uint16_t*)data);
height = *(((uint16_t*)data)+1);
data_end = data + 4 + (width * height);
} }
inline uint8_t getFormat() const inline uint8_t getFormat() const