if (runningOSX && currentMode==FULL_SCREEN) {
if (runningOSX) {
	public void run() {	    if (isMinimised || ! frame.isVisible()) {		return;	    }	    bufferStrategy = frame.getBufferStrategy();	    /* OS X rendering appears to be different */	    if (runningOSX && currentMode==FULL_SCREEN) {		do {		    /* mark everything in the layers above as being dirty */		    JLayeredPane lp = frame.getLayeredPane();		    markLayerDirty(lp, lp.DRAG_LAYER.intValue());		    markLayerDirty(lp, lp.MODAL_LAYER.intValue());		    markLayerDirty(lp, lp.PALETTE_LAYER.intValue());		    markLayerDirty(lp, lp.POPUP_LAYER.intValue());		    Graphics g = bufferStrategy.getDrawGraphics();		    Insets i = frame.getInsets();		    g.translate(i.left, i.top);		    updatedComponent.doFrameUpdate(g);		    /* draw everything in the layers above the main layer */		    RepaintManager.currentManager(frame).paintDirtyRegions();		    g.dispose();		} while (bufferStrategy.contentsLost());		bufferStrategy.show();		return;	    }	    /* non-OS X rendering code */            int w = frame.getWidth();            int h = frame.getHeight();            if (w != oldWidth || h != oldHeight) {                oldWidth = w;                oldHeight = h;                frame.createBufferStrategy(NUM_BUFFERS);                bufferStrategy = frame.getBufferStrategy();            }	    do {		/* draw the whole JFrame */		Graphics g = bufferStrategy.getDrawGraphics();		frame.paint(g);		g.dispose();	    } while (bufferStrategy.contentsLost());	    bufferStrategy.show();	    return;	}