It’s 64 x 64 because I scaled the buttons by 1.77 when exporting them.
This is my config.lua
local aspectRatio = display.pixelHeight / display.pixelWidth application = { content = { graphicsCompatibility = 1, width = aspectRatio \> 1.5 and 320 or math.ceil( 480 / aspectRatio ), height = aspectRatio \< 1.5 and 480 or math.ceil( 320 \* aspectRatio ), scale = "letterBox", fps = 60, imageSuffix = { ["@2x"] = 1.5, ["@4x"] = 3.0, }, }, }
To call the buttons I use
facebook\_button = widget.newButton{ defaultFile = "images/facebook\_menu.png", overFile = "images/facebook\_menu-over.png", width, height = 36, 36, onRelease = socialFunction }
The same for Twitter.