mirror of
https://github.com/opentx/opentx.git
synced 2025-07-15 04:15:26 +03:00
Shift in bitmaps (and mem overflow I suppose)
This commit is contained in:
parent
946fda5705
commit
a495885472
1 changed files with 1 additions and 4 deletions
|
@ -480,7 +480,7 @@ BitmapBuffer * BitmapBuffer::load(const char * filename)
|
|||
|
||||
//convert to 565 fromat
|
||||
// todo use dma2d for conversion from 888 to 565
|
||||
unsigned char *p = data;
|
||||
unsigned char * p = data;
|
||||
BitmapBuffer * bmp = new BitmapBuffer(w, h);
|
||||
uint16_t * dest = bmp->data;
|
||||
if (bmp == NULL) {
|
||||
|
@ -489,9 +489,6 @@ BitmapBuffer * BitmapBuffer::load(const char * filename)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
*dest++ = w;
|
||||
*dest++ = h;
|
||||
|
||||
for(int row = 0; row < h; ++row) {
|
||||
unsigned char *l = p;
|
||||
for(int col = 0; col < w; ++col) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue