AWTGears: Set background of window to black to avoid some resizing artifacts

This commit is contained in:
Elias Naur 2006-10-20 12:55:01 +00:00
parent 5d5dde0aed
commit 1c18537f1e
1 changed files with 2 additions and 0 deletions

View File

@ -32,6 +32,7 @@
package org.lwjgl.test.opengl.awt;
import java.awt.Frame;
import java.awt.Color;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.nio.FloatBuffer;
@ -76,6 +77,7 @@ public class AWTGears extends Frame {
public AWTGears() throws LWJGLException {
setTitle("Gears");
setSize(300, 300);
setBackground(Color.BLACK);
add(canvas0 = new AWTGLCanvas() {
long startTime = 0;
long fps = 0;