turgu1 / ESP-IDF-InkPlate

A porting effort to the ESP-IDF framework for the e-Radionica InkPlate software.
15 stars 9 forks source link

Fix color palette bit shift bug #7

Closed mzyy94 closed 2 years ago

mzyy94 commented 2 years ago

When displaying a 4-bit or 8-bit bmp image without dithering, the colors are retrieved incorrectly from the color palette.

  display.drawImage("/sdcard/grad.bmp", 0, 0, false, false);
Original image master This patch
grad IMG_4167 IMG_4166
turgu1 commented 2 years ago

Thanks Yuki, I will do the same for the v0.9.5

turgu1 commented 2 years ago

Could it be also required for line 179??

mzyy94 commented 2 years ago

Exactly! It's also required for line 179!! I'm sorry I couldn't find it. ;)

Source 4-bit BMP Source(Zoom)
dot.bmp dot-zoom
Head(886124d) fix line 179
IMG_4175 IMG_4172
turgu1 commented 2 years ago

No problem, I will do the modif. Thanks for your help!

turgu1 commented 2 years ago

It's done.