How to clear Gfx Stencil in C

How are we supposed to clear a stencil from the graphics system?

The C documentation is pretty clear: use graphics->setStencil(NULL)

However, in pd_api_gfx.h, that function is deprecated.

I don't think we can use setStencilImage with a NULL, tho?

So I'm using setStencil(NULL) until some other option is surfaced

I suppose a clearStencil() would be nice, in line with the non-deprecated lua function

since when is there not a playdate.graphics.clearStencil()?

Calling setStencilImage(NULL, anything) to clear the stencil is fine, and using setStencil(NULL) will continue to be supported for a long time. I'll file a note to clarify that in the docs.