Large diffs are not rendered by default.

@@ -48,7 +48,6 @@ public BrandrHome()
colors.add(Color.yellow);
colors.add(Color.CYAN);
colors.add(Color.blue);
coverDraw = new CoverDraw(colors, 640, 480, "PM me ur dankest memes gurl");

glProfile = GLProfile.getDefault();
glCapabilities = new GLCapabilities( glProfile );
@@ -67,6 +66,9 @@ public void windowClosing( WindowEvent windowevent ) {

setSize( 640, 480 );
setVisible(true);

coverDraw = new CoverDraw(colors, 640, 480, "PM me ur dankest memes gurl");

}

public static void main(String[] args)
@@ -109,10 +111,12 @@ public void reshape(GLAutoDrawable glAutoDrawable, int x, int y, int width, int
//this glOrtho call sets up a 640x480 unit plane with a parallel projection.
gl.glOrtho(0,640,0,480,0,10);
//Handle aspect ratio
double AR= 640.0/480.0;
if (AR*height<width) gl.glViewport(x, y, (int) (AR*height), height);
else gl.glViewport(x, y, width, (int) (width/AR));
gl.glViewport(x, y, (int) (AR*height), height);
/*double AR= 640.0/480.0;
if (AR*height<width)
gl.glViewport(x, y, (int) (AR*height), height);
else
gl.glViewport(x, y, width, (int) (width/AR));*/
gl.glViewport(x, y, width, height);
gl.glMatrixMode(GL2.GL_MODELVIEW);
gl.glLoadIdentity();

@@ -1,7 +1,6 @@
package brander;

import com.jogamp.opengl.GL2;
import com.jogamp.opengl.GLAutoDrawable;
import com.jogamp.opengl.util.awt.TextRenderer;

import java.awt.*;
@@ -72,6 +71,7 @@ private void DrawRectangle(int x, int y, int width, int height, Color color, GL2
{
x = 0;
}

if(y < 0)
{
y = 0;