corona icon indicating copy to clipboard operation
corona copied to clipboard

A couple problems with texture dimensions

Open ggcrunchy opened this issue 2 years ago • 0 comments

The result of canvases converting dimensions from content to screen coordinates (snapshots also do this) on creation can be a little off: this goes through the x and y parameters and then those drag in the origins, so with certain setups you can get weird results. :smile:

This should be simple to fix but I'm not yet sure what the most appropriate changes would be.

I ran afoul of this while working on this canvas feature.


This also looks off—namely that both GetWidth() and GetHeight() have the same implementation—though I only spotted it while looking for other things.

I tried a build with those commented out and this appears to be the only affected code , which I'm guessing is this case.

ggcrunchy avatar Jun 29 '22 19:06 ggcrunchy