PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Blitting with rotation in iPhone

Hi! While porting Flip Disc to the iPhone, I've found out that the rotation angles used for blitting might be reversed when using the DOR_LANDSCAPE orientation. Can you check that in the library code and let me know if it's effectively a glitch in the engine or if I should keep on checking my game's source code?

Thanks in advance for your answer,

--Nacho
Hi Nacho,

Currently, blitting rotation is reversed for all non-OpenGL iPhone builds. This also happens when using a normal (portrait) orientation.

We recommend reversing the rotation for the iPhone using this formula until a fix is ready:

Code:

#if defined(DEVICE_IPHONE)
rotation = 4096 - rotation % 4096;
#endif
Great, I'll change the formula to the one you suggested, then! Thanks for your prompt reply! :)

--Nacho