C SDK documentation incorrect for LCDSpriteDrawFunction

Hi all. In the C API documentation, it says the following about void playdate->sprite->setDrawFunction.

However, this is not the actual function signature for that draw function. This is the actual signature

typedef void LCDSpriteDrawFunction(LCDSprite* sprite, PDRect bounds, PDRect drawrect);

It would be awesome if the C API documentation could be updated. Thanks!

1 Like

fixed. Thanks for catching that!

1 Like

Looks like it wasn't fixed, or it regressed? See Inside Playdate with C

oh, oops! I fixed it for playdate->graphics->setSpriteDrawFunction() but missed that it's also used in playdate->sprite->setDrawFunction(). I'll always regret that we left both LCDRect and PDRect in the API, didn't make that consistent before the public release so now we're kinda stuck with it. :frowning:

Anyway, thanks for finding that! PDRect is the correct one there. I'll get a fix in the queue.

1 Like