I have the following problem with a Nokia series 60 device:
I'm using the MIDP2.0 GameCanvas class and set it to fullscreen like this:
myCanvas = new Canvas(this);
myCanvas.setFullScreenMode(true);
myCanvas.setHeight();
in Canvas class:
public void setHeight()
{
DISP_HEIGHT = getHeight();
yOffset = 13 + ((DISP_HEIGHT-208)/2);
}
Oddly, the function getHeight() still return the 144px of the non fullscreen mode. I need to calculate the yOffset to center the screen content for devices with different screen height (eg. Sony Ericsson 220px).
Is there any possibility to get the real screen height in fullscreen mode? I heard about some kind of hardware profiles, but didn't find any functions which support them.
Thx for your help,
Eric

Reply With Quote




