playdate.graphics.image:drawScaled ignoring the inverted flag

I've been trying to render an image, a white .png added bellow, but the inverted flag doesn't behave as expected:

	gfx.fillRect(0,0, dspl.getWidth()/2, dspl.getHeight())

	spinIcon:invertedImage():drawScaled( 50, 50, 1 )
	spinIcon:invertedImage():draw( 250, 50 )

image

As you can see, the normal draw call returns the image with inverted colors, but calling drawScaled returns the image in white still. The same result is with setting the flag, not returning a new object all together.

I'm doing this on windows, SDK version 2.4.2

playdate_crank_clockwise

Above mentioned file here

Did you set the imageDrawMode? Sometimes that messes things up with image drawing.

Nope. The code mentioned is the only code in the project.

I mean, other then
local spinIcon = gfx.image.new("art/playdate_crank_clockwise")

Does seem like a bug.

Workaround would be to prepare the inverted and scaled images at initialisation and then draw them normally in your update loop. You'd want to do this anyway for performance reasons.