Thank you for the help, I wasn’t aware of that so I started using it. Now, the problem is that, I can’t draw a rectangle big as the screen. It works for iPhone 5 but doesn’t work for iPhone 4/4S when my config.lua file is as follows:
[lua]width = 640,
height = 1136,
scale = “letterBox”,
fps = 30,[/lua]
When I change the config.lua file to this:
[lua]width = 640,
height = 960,
scale = “letterBox”,
fps = 30,[/lua]
It works on iPhone 4S but on iPhone 5, it leaves like a 100 pixels area on the left, before drawing the rectangle.
Edit: Sorry, I forgot to paste how I draw the rectangle.
[lua]local rect = display.newRect(0, 0, display.pixelWidth, display.pixelHeight)[/lua]
I also tried pixelHeight as 3rd parameter and pixelWidth as 4th but it didn’t help either. [import]uid: 191500 topic_id: 32667 reply_id: 129878[/import]