Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aspect Ratio behaviour #147

Open
GoogleCodeExporter opened this issue May 1, 2015 · 2 comments
Open

Aspect Ratio behaviour #147

GoogleCodeExporter opened this issue May 1, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
use setGameSize(480,320);
run application on a device with a resolution of 800x480

What is the expected output?
http://christianboutin.com/temp/droid_expected.jpg
which is a stretched version of the original:
http://christianboutin.com/temp/default.jpg

What do you see instead?
http://christianboutin.com/temp/droid.jpg

What version of Rokon are you using?
trunk

On which version of Android are you experiencing this?
2.2 Froyo

Please provide any additional information below.
When the size of the game area is of a certain ratio, like 1.5 (480x320) and 
you run it on a 800x480 screen, I think a ratio-consistent area of 720x480 
"device pixels" (1.5) with black bars left and right would be best to maintain 
the same experience (games like Devilry Huntress and Jewellust do that).  What 
I get instead is a game area of 800x480 device pixels, and so the gameSize is 
actually 533x320.  So everything is shifted left and I get a gap area on the 
right, although the fixed background is stretched over the entire 800x480 area, 
messing up its aspect ratio.

Original issue reported on code.google.com by [email protected] on 23 Aug 2010 at 12:44

Attachments:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant