I have an issue going from Windows to Mac I was hoping someone can help me out with.
All of the images I create in photoshop on Windows do not render correctly in the simulator on Mac.
I have narrowed it down to the size of the image… Or what the simulator says the size is.
I have a test.png file 680x1000
If I run the following code:
local image = display.newImage(“test.png”)
print(image.width)
print(image.height)
Output from simulator on Windows:
680
1000
Output from simulator on Mac:
512
384
The config.lua does not have any effect on this output. Changing width and height for content change the image size on screen but the output remains the same. I would expect that since I assume image.width/height returns the actual size and not the scaled size.
The full app works great on the Windows simulator. When run on Mac simulator all the images are to small. I am guessing it is the size discrepancy between the two platforms. Also, if I open the image on Mac using any image editor it shows the correct size.
Any help would be greatly appreciated.
[import]uid: 117422 topic_id: 23586 reply_id: 323586[/import]
[import]uid: 52491 topic_id: 23586 reply_id: 94711[/import]