Skip to content

1.2.36

Choose a tag to compare

@lovyan03 lovyan03 released this 30 Oct 07:42
· 131 commits to master since this release
fb494c6

Text

  • drawString() / drawChar() / print() rasterized every glyph even when it lay entirely outside the clip rectangle, so text in a narrow sprite drawn as a tile cost almost as much as visible text. A glyph that cannot touch the clip rectangle is now skipped before rasterizing (all font types: GLCD, bitmap / BDF, RLE, GFXfont, U8g2, BFF, VLW); drawn pixels, the returned advance, the cursor and the drawing color left afterwards are unchanged. On ESP32-S3, an 8-character drawString() outside the clip rectangle takes 18 to 92 µs instead of 66 to 498 µs; visible text is 0.6 to 5.8 % slower from the per-glyph check. getClipRect() is now defined in the class. (#988)
  • drawLine() walked a line whose y range missed the clip rectangle pixel by pixel to its end, so a line below or above a short sprite took longer than a visible one. It now returns before the walk (82 µs → 0.4 µs for a 1280-pixel line on ESP32-S3); drawn pixels are unchanged. (#989)

Fixes

  • Palette images through the transformed copy (readPixelRGB() / readRectRGB() of a palette sprite, rotated palette sprites, pushRotateZoom()) read one pixel past the end or before the start of the source buffer after the last pixel of a row. The value was not used, but the address could lie outside the image. The copy now stops before that read; output is unchanged and the copy is as fast as before or slightly faster. (#990)

Internal

  • CI: PicoSDKBuild runs on Ubuntu 26.04 (Python 3.13, CMAKE_POLICY_VERSION_MINIMUM=3.5 for CMake 4). (#986)

Checked on the fork CI (all builds pass, no new warnings against master).