Is there a way to reset the draw function of a sprite back to its default after setting it to a custom one using: void playdate->sprite->setDrawFunction(LCDSprite *sprite, LCDSpriteDrawFunction *func); ?
I tried setting it to NULL but that crashes the program
In an attempt to work around the problem described above, I tried to write my own default draw function.
I then ran into another problem: If I call sprite->setDrawFunction before sprite->setImage, the program will segfault when calling sprite->drawSprites (this only happens if the sprite is added to the display list). If I call sprite->setImage before sprite->setDrawFunction the program doesn't crash on calling sprite->drawSprites but sprite->getImage will return NULL for the sprite.