The 2x image loaded, but it seems that the image scaling code
was not modified to take this into account. 2x images appear
visually to be half the size they should be.
Example:
I have a 60x60 Ti.UI.ImageView. On a iPhone 3, my remote image
loads, and is scaled to fill the 60x60 space.
However, on an iPhone 4, the high-res image seems to have scaled
to only take up half of the space. I believe the image scaled to
literally 60x60px, instead of 60x60 points on the screen (aka
120x120px).
My code:
// left image
var updateImage = Titanium.UI.createImageView({
defaultImage:'images/loading_60.png',
image:thisUpdate.updateCauseIcon,
top:5,
left:10,
width:60,
height:60
});
// iPhone 4 display
if (Titanium.Platform.displayCaps.dpi == 320) {
updateImage.image = thisUpdate.updateCauseIcon2x;
updateImage.hires = true;
}</code>
First screenshot (timestamp wise) is retina, second is normal.
Tested using today's build "r7ca73a34".