--- a/javauis/lcdui_akn/javalcdui/javasrc/javax/microedition/lcdui/Canvas.java Wed Jun 09 09:34:07 2010 +0300
+++ b/javauis/lcdui_akn/javalcdui/javasrc/javax/microedition/lcdui/Canvas.java Mon Jun 21 15:32:50 2010 +0300
@@ -88,7 +88,7 @@
// This flag is valid only in NGA
private boolean iM3GContent;
-
+ private boolean iM3GDraw = false;
/**
* This member variable is set <code>true</code> if the <code>Nokia-UI-Enhancement</code>
* attribute is "CanvasHasBackground". The attribute may be placed in the JAD or the manifest.
@@ -637,14 +637,14 @@
break;
case Toolkit.EVENT_M3G_DRAW:
if (shown)
- {
+ {
synchronized (iCallbackLock)
{
- Graphics graphics = GetPaintGraphics();
- graphics.M3Gdraw(aData0);
+ Graphics graphics = GetPaintGraphics();
+ iM3GDraw = aData0 != 0;
}
- }
- break;
+ }
+ break;
default:
super.handleEvent(aEvent, aData0, aData1);
break;
@@ -913,6 +913,14 @@
iM3GContent = aValue;
}
+ /*
+ * This function blocking downscaled when M3G drawing some content
+ */
+ boolean m3gDraw()
+ {
+ return iM3GDraw;
+ }
+
private native int _create(
int aToolkit, int aDisplayable, boolean aIsGameCanvas, int[] aCanvasAttribArray);
static native int _getGameAction(int aToolkit, int aKeyCode);