Skip to content

Commit

Permalink
Update xdrv_10_scripter.ino
Browse files Browse the repository at this point in the history
  • Loading branch information
gemu2015 committed Aug 15, 2024
1 parent 0c223ad commit cde93a5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tasmota/tasmota_xdrv_driver/xdrv_10_scripter.ino
Original file line number Diff line number Diff line change
Expand Up @@ -10837,6 +10837,9 @@ uint32_t fsize;
dwp = renderer->rgb_fb + ((Settings->display_height - lins - 1) * Settings->display_width);
for (uint32_t cols = 0; cols < Settings->display_width; cols++) {
uint16_t color = *dwp++;
if (renderer->lvgl_pars()->swap_color) {
color = (color >> 8) | (color << 8);
}
*lbp++ = (color &0x001f) << 3; // B (5 bit)
*lbp++ = (color &0x07e0) >> 3; // >> 5 G (6 bit)
*lbp++ = (color &0xf800) >> 8; // >> 10 R (5 bit)
Expand Down

0 comments on commit cde93a5

Please sign in to comment.