void initResolution ( Resolution source ) { Check . notNull ( source ) ; setSystemCursorVisible ( cursorVisibility . booleanValue ( ) ) ; this . source = source ; screen . onSourceChanged ( source ) ; final int width = source . getWidth ( ) ; final int height = source . getHeight ( ) ; // Standard rendering final Resolution output = config . getOutput ( ) ; if ( FilterNone . INSTANCE . equals ( filter ) && width == output . getWidth ( ) && height == output . getHeight ( ) ) { buf = null ; transform = null ; } // Scaled rendering else { buf = Graphics . createImageBuffer ( width , height ) ; transform = getTransform ( ) ; final Graphic gbuf = buf . createGraphic ( ) ; graphic . setGraphic ( gbuf . getGraphic ( ) ) ; } }
Initialize resolution .