Resolution Independence - File Naming

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
paulsr
Posts: 222
Joined: Thu Jul 19, 2012 9:47 am
Contact:

Resolution Independence - File Naming

Post by paulsr » Wed Dec 11, 2013 9:21 am

Folks,

I'm having my first attempt at testing resolution independence using LC 6.5.0 along with retina and non-retina iPads.

Maybe I'm doing something wrong, or I didn't RTFM properly, but...

For my first attempt, I created two background files.

One at 1024x768 and one at 2048x1536.

I put these in a directory called "images" and named them "bg_lscape@medium.png" and "bg_lscape@extra-high.png"

In the first one I slapped the word "medium" in the middle of the image, and in the second, the words "extra-high" just so I could be sure I knew which one was loading.

On both the iPads, the medium density image was loaded.

But then I noticed, according to the Release Notes, I could name the medium image either "bg_lscape@medium.png" or just "bg_lscape.png".

Renaming to the latter, and changing the filename in "Source" box, everything works fine.

Is there a bug, or did I misunderstand something?

--paul

Klaus
Posts: 14182
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Resolution Independence - File Naming

Post by Klaus » Wed Dec 11, 2013 1:12 pm

Hi Paul,

no idea if this is a bug or not, for iOS I stick with the "file@2x.xxx" naming convention, which always works fine here.
image.jpg
image@2x.jpg


Best

Klaus

paulsr
Posts: 222
Joined: Thu Jul 19, 2012 9:47 am
Contact:

Re: Resolution Independence - File Naming

Post by paulsr » Thu Dec 12, 2013 1:08 am

Thanks Klaus.

I'm having my first attempt to make an app that will work on iOS and Android, and thought I'd start with iOS first, so I do need to use the new file-naming conventions.

--paul

Post Reply