--- a/javauis/lcdui_qt/src/javax/microedition/lcdui/LCDUIInvokerImpl.java Thu May 27 12:49:31 2010 +0300
+++ b/javauis/lcdui_qt/src/javax/microedition/lcdui/LCDUIInvokerImpl.java Fri Jun 11 13:33:44 2010 +0300
@@ -205,6 +205,15 @@
return ((Canvas) canvas).getGameBufferGraphics();
}
+ protected org.eclipse.swt.internal.qt.graphics.WindowSurface doGetWindowSurface( Graphics g )
+ {
+ if( g != null )
+ {
+ return g.getGraphicsBuffer().getWindowSurface();
+ }
+ return null;
+ }
+
protected Object doGetFlushLock(Object graphics)
{
//return ((Graphics) graphics).graphicsBuffer;
@@ -227,6 +236,26 @@
((Canvas) canvas).flushGameBuffer(x, y, width, height);
}
+ protected void doSync(Object graphics)
+ {
+ ((Graphics)graphics).sync();
+ }
+
+ protected void doStartExternalRendering(Graphics g)
+ {
+ // Flush any pending 2D graphics.
+ g.sync();
+ g.getGraphicsBuffer().startFrame( g.getClipX(),
+ g.getClipY(),
+ g.getClipWidth(),
+ g.getClipHeight() );
+ }
+
+ protected void doEndExternalRendering(Graphics g)
+ {
+ g.getGraphicsBuffer().endFrame();
+ }
+
protected String doGetDynamicProperty(String key)
{
if("com.nokia.key.scancode".equals(key))