loboris / MicroPython_ESP32_psRAM_LoBo

MicroPython for ESP32 with psRAM support
Other
831 stars 344 forks source link

tft.image() does not respect setwin() #338

Open callimero opened 2 years ago

callimero commented 2 years ago

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)