Login  Register

Re: canvas not filling frame

Posted by Karl-Heinz Mali on Dec 29, 2019; 6:59pm
URL: https://forum.jogamp.org/canvas-not-filling-frame-tp4040092p4040210.html

I had the same problem with the JDK 11 and World Wind Java on Windows 10.

I modified the GLCanvas.java

  private final boolean updatePixelScale() {
      if( jawtWindow.hasPixelScaleChanged() ) {
          jawtWindow.getMaximumSurfaceScale(maxPixelScale);
          jawtWindow.getMinimumSurfaceScale(minPixelScale);
          System.arraycopy(maxPixelScale, 0, hasPixelScale, 0, 2);
          return setSurfaceScaleImpl(jawtWindow);
      } else {
          return false;
      }
  }

This modification works well for me with all JOGL 2.4 applications.