loboris/MicroPython_ESP32_psRAM_LoBo

tft.image() does not respect setwin()

callimero opened this issue · 0 comments

Lines are nicely drawn respecting the setwin() numbers (ST7789 with a TTGO Display 240x135 which needs the setwin to stay mentally sane)

tft.image() does not respect the setting.

tft.setwin(40, 52, 279, 186)
tft.savewin()
tft.image(0, 0, 'assets/Egghead_headG.jpg' )      # shifted out of screen
tft.image(40, 52, 'assets/Egghead_headG.jpg' )  # manual with numbers from setwin, all visible
tft.line(0, 0, 100, 100, 0xFFFFFF)