Sign in to follow this  
RetardVeverca

ScaleAspectFit problem

Recommended Posts

Hi :)

 

I have a problem when setting game.System.idtkScale = 'ScaleAspectFit'; and running game with CocoonJS. The space outside canvas (letterbox) is reproducing parts of canvas itself, so you get multiples of canvas instead of black border as you should with letterboxing. Is it bug? Or do you have to set another parameter so that ScaleAspectFit will work properly? (I've tested it many times with different games and the problem is always there)

 

Screenshot:

letterbox.png

Share this post


Link to post
Share on other sites

Yes, only when used with ScaleAspectFit. ScaleAspectFill of course fills the screen with respect to scale and ScaleToFill stretches to fill the screen. So the problem exist with ScaleAspectFit where areas outside letterbox should be 'dead' (I would assume with background color set in scene) but are instead showing parts of canvas itself.

 

I tested it on two devices: Sony Xperia Arc running 4.0.4 and Sony Xperia J running 4.1.2

 

I will test on some other devices tomorow ...

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.