I have a large legacy Corona project that for various reasons hasn’t been continuously updated to recent versions of Corona. Due to Apples Gatekeeper changes in 10.9.5 I’m now at a point where I need to update to a recent version in order to publish updates.
I’m using Corona 2015.2731.
Adopting the entire project to the Graphics 2.0 engine is not realistic at this point as its just to large (> 400k LOC) and very graphical. A complete rewrite is more likely.
I’ve enabled graphicsCompatibility 1.0 mode and adopted most things to the changed API:s. The thing that I haven’t solved yet is how to properly use xReference/yReference and anchorX/anchorY when using graphicsCompatibility 1.0 mode. Conceptually I’m completely on board with the changes I need to make with the different coordinate systems, origins etc.
However, with graphicsCompatibility 1.0 mode the xReference/yReference properties are not available, and using anchorX/anchorY yields the following warning:
[lua] o.anchorY is only supported in graphics 2.0. Your mileage may vary in graphicsCompatibility 1.0 mode [/lua]
The resulting transformations are up to now working as expected when using anchorX/anchorY, I’m however concerned about this warning as I don’t want to be backed into a corner if an updated version of Corona changes the behaviour.
My question is: What is the proper way to achieve xReference/yReference dependent functionality in graphicsCompatibility 1.0 mode without producing the above warning?
I’m very grateful for any help or insights
Best,