widerules / frozenbubbleplus

Automatically exported from code.google.com/p/frozenbubbleplus
0 stars 0 forks source link

Main display is clipped on the left and right sides in portrait mode on many devices (e.g., Kindle Fire) #39

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Decrease the horizontal display resolution to ensure the main game view is not 
clipped.

Original issue reported on code.google.com by forter...@gmail.com on 24 May 2013 at 1:05

GoogleCodeExporter commented 9 years ago
This is due to the calculations in setSurfaceSize() in GameView.java being 
integer math, but I believe the intent was for the calculations to actually be 
floating point.

When the calculations includes casts to floating point types, the display 
clipping is eliminated in portrait mode given a display resolution of 600 
pixels wide x 1024 pixels high.  This results in areas of the top and bottom of 
the display being blank, because the ratio of 320 to 480 (0.67) for the 
supported game play area is not the same as 600 to 1024 (0.59) for the actual 
screen area.  For the display to display the entire game area, the aspect 
ratios must be similar.

Original comment by forter...@gmail.com on 30 May 2013 at 2:41

GoogleCodeExporter commented 9 years ago
To be released in version 1.17.

Original comment by forter...@gmail.com on 19 Jun 2013 at 10:49