x = (int) ( x - getWorldTranslation().x + desktop.getWidth() / 2 ); y = (int) ( DisplaySystem.getDisplaySystem().getHeight() - y - getWorldTranslation().y + desktop.getHeight() / 2 );
x = (int) ( x - getWorldTranslation().x + desktopWidth / 2 ); y = (int) ( DisplaySystem.getDisplaySystem().getHeight() - y - getWorldTranslation().y + desktopHeight / 2 );
    private void convert( int x, int y, Vector2f store ) {        if ( lastXin == x && lastYin == y ) {            store.x = lastXout;            store.y = lastYout;        }        else {            lastXin = x;            lastYin = y;            if ( getRenderQueueMode() == Renderer.QUEUE_ORTHO ) {                //TODO: occlusion by other quads (JMEFrames)                x = (int) ( x - getWorldTranslation().x + desktop.getWidth() / 2 );                y = (int) ( DisplaySystem.getDisplaySystem().getHeight() - y - getWorldTranslation().y + desktop.getHeight() / 2 );            }            else {                store.set( x, y );                DisplaySystem.getDisplaySystem().getWorldCoordinates( store, 0, pickRay.origin );                DisplaySystem.getDisplaySystem().getWorldCoordinates( store, 0.3f, pickRay.direction ).subtractLocal( pickRay.origin ).normalizeLocal();                applyWorld( bottomLeft.set( -width * 0.5f, -height * 0.5f, 0 ) );                applyWorld( topLeft.set( -width * 0.5f, height * 0.5f, 0 ) );                applyWorld( topRight.set( width * 0.5f, height * 0.5f, 0 ) );                applyWorld( bottomRight.set( width * 0.5f, -height * 0.5f, 0 ) );                if ( pickRay.intersectWherePlanarQuad( topLeft, topRight, bottomLeft, tuv ) ) {                    x = (int) ( ( tuv.y - 0.5f ) * width ) + desktop.getWidth() / 2;                    y = (int) ( ( tuv.z - 0.5f ) * height ) + desktop.getHeight() / 2;                }                else {                    x = -1;                    y = -1;                }            }            lastYout = y;            lastXout = x;            //debug://            Graphics g = desktop.getGraphics();//            g.setColor( Color.RED );//            g.fillRect( x, y, 1, 1 );//            g.dispose();            store.set( x, y );        }    }