RetardVeverca Posted March 24, 2014 Share Posted March 24, 2014 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: Quote Link to comment Share on other sites More sharing options...
enpu Posted March 24, 2014 Share Posted March 24, 2014 Does that show only when using ScaleAspectFit ? Quote Link to comment Share on other sites More sharing options...
enpu Posted March 24, 2014 Share Posted March 24, 2014 What Android device are you using?Have you tested with other devices? Quote Link to comment Share on other sites More sharing options...
RetardVeverca Posted March 26, 2014 Author Share Posted March 26, 2014 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 ... Quote Link to comment Share on other sites More sharing options...
enpu Posted March 26, 2014 Share Posted March 26, 2014 I'm afraid that this is bug with CocoonJS.I will test with some Android devices, and see if this is device-specific issue. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.