diff -r 773449708c84 -r 4ad59aaee882 javauis/lcdui_qt/src/javax/microedition/lcdui/Graphics.java --- a/javauis/lcdui_qt/src/javax/microedition/lcdui/Graphics.java Thu Sep 02 20:20:40 2010 +0300 +++ b/javauis/lcdui_qt/src/javax/microedition/lcdui/Graphics.java Fri Sep 17 08:28:21 2010 +0300 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2009, 2010 Nokia Corporation and/or its subsidiary(-ies). * All rights reserved. * This component and the accompanying materials are made available * under the terms of "Eclipse Public License v1.0" @@ -110,7 +110,7 @@ private com.nokia.mj.impl.rt.support.Finalizer finalizer; - //Constructor + // Constructor Graphics(Buffer buffer, Rectangle clipRect) { finalizer = ((finalizer != null) ? finalizer @@ -123,14 +123,7 @@ finalizer = null; if(!ESWTUIThreadRunner.isDisposed()) { - ESWTUIThreadRunner.safeSyncExec(new Runnable() - { - public void run() - { - dispose(); - } - }); - + dispose(); } } } @@ -143,8 +136,6 @@ graphicsBuffer = buffer; } - - /** * Disposes objects with native counterparts */ @@ -162,14 +153,14 @@ */ void reset() { - synchronized(graphicsBuffer) { - // setDefaultSettings() must be called - // before the setGraphicsDefaults() since - // graphicsBuffer (Buffer implementation) uses - // the member values of this instance when setting the defaults - setDefaultSettings(); - graphicsBuffer.setGraphicsDefaults(this); - } + synchronized(graphicsBuffer) { + // setDefaultSettings() must be called + // before the setGraphicsDefaults() since + // graphicsBuffer (Buffer implementation) uses + // the member values of this instance when setting the defaults + setDefaultSettings(); + graphicsBuffer.setGraphicsDefaults(this); + } } void setDefaultSettings()