code: 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());
          }
      }
docs: Initialize resolution.
  
  @param source The resolution source (must not be <code>null</code>).
  @throws LionEngineException If invalid argument.