deanbrowne / j4me

Automatically exported from code.google.com/p/j4me
1 stars 1 forks source link

Title Bar / Menu Bar are missing #40

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

Using Rolltech JVM (derivating from IBM J9)

Can't see title bar nor menu bar, except if I force the slave canvas full
screen mode off.

I propose the following Patch : in DeviceScreen.repaint()

//slave.setFullScreenMode(true) 
slave.setFullScreenMode( hasTitleBar() || hasMenuBar() );

Dean, what do you think ? 

Original issue reported on code.google.com by jmherme...@gmail.com on 20 May 2008 at 1:37

GoogleCodeExporter commented 9 years ago
Hopefully I fixed this.  Can you grab the latest DeviceScreen from Subversion 
and test?

I don't think your suggested patch will work.  In a perfect world we'd never 
have
that slave.setFullScreenMode call.  However, there was some bug on some phone 
that
caused it to mess up when typing stuff into the text box.

So my fix was to change the way setFullScreenMode works and ignore calls to it 
when
we're using the native title bar.

Original comment by deanbro...@gmail.com on 21 May 2008 at 5:21