mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-09 23:22:33 -04:00
Reject bmp images that aren't 240 pixels wide (#1351)
This commit is contained in:
parent
2ae639412d
commit
1188157a3e
1 changed files with 3 additions and 0 deletions
|
@ -456,6 +456,9 @@ bool ILI9341::drawBMP2(const ui::Point p, const std::filesystem::path& file) {
|
|||
width = bmp_header.width;
|
||||
height = bmp_header.height;
|
||||
|
||||
if (width != 240)
|
||||
return false;
|
||||
|
||||
file_pos = bmp_header.image_data;
|
||||
|
||||
py = height + 16;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue