Function playdate::sprite::add_dirty_rect

source ·
pub fn add_dirty_rect(rect: LCDRect)
Expand description

Marks the given dirty_rect (in screen coordinates) as needing a redraw.

Graphics drawing functions now call this automatically, adding their drawn areas to the sprite’s dirty list, so there’s usually no need to call this manually.

Equivalent to sys::ffi::playdate_sprite::addDirtyRect