title: Resizing window contents with lwjgl
body: <p>I'm trying to have the contents of my display resize when the window is resized. Here's my code:</p>
  
  <pre><code>        if (Display.wasResized()) {
              this.width = Display.getWidth();
              this.height = Display.getHeight();
  
              GL11.glViewport(0, 0, this.width, this.height);
              GL11.glLoadIdentity();
              GL11.glMatrixMode(GL11.GL_PROJECTION);
              GL11.glLoadIdentity();
              GL11.glOrtho(0.0f, this.width, 0.0f, this.height, 1.0f, -1.0f);
              GL11.glMatrixMode(GL11.GL_MODELVIEW);
              GL11.glLoadIdentity();
          }
  </code></pre>
  
  <p>When I use this, the window's content don't resize, it just moves towards the origin. Is there any way to make the contents actually resize?</p>