mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2024-09-22 08:16:16 +08:00
waveshare: fix RGB for some screensizes
This commit is contained in:
parent
9247613c0b
commit
3146305de1
|
@ -216,8 +216,8 @@ static int read_bmp_rgb(const uint8_t *bmp, const size_t bmpsize, uint8_t **blac
|
||||||
Black_data = Black_data << 1;
|
Black_data = Black_data << 1;
|
||||||
Red_data = Red_data << 1;
|
Red_data = Red_data << 1;
|
||||||
}
|
}
|
||||||
// Skip BMP line padding
|
// Skip BMP line padding: we accumulate 3* %4 per line and need one more %4 as padding
|
||||||
offset+=(((pbmpheader->BMP_Width*3/4)+1)*4)-pbmpheader->BMP_Width*3;
|
offset += pbmpheader->BMP_Width % 4;
|
||||||
}
|
}
|
||||||
return PM3_SUCCESS;
|
return PM3_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue