--- a/javauis/lcdui_qt/src/javax/microedition/lcdui/Buffer.java Fri Sep 17 16:44:34 2010 +0300
+++ b/javauis/lcdui_qt/src/javax/microedition/lcdui/Buffer.java Mon Oct 04 11:29:25 2010 +0300
@@ -335,9 +335,15 @@
return;
}
- // if there's nothing to flush return
+ // if there's nothing to flush, just leave the surface session open
+ // if so requested and return. Surface session needs to be left open
+ // if the call came from external renderer like m3g or m2g
if(!commandBuffer.containsDrawnPrimitives())
{
+ if(!closeSurfaceSession)
+ {
+ startFrame(hostBounds.x, hostBounds.y , hostBounds.width , hostBounds.height);
+ }
return;
}