aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2005-04-10 00:17:48 +0000
committerKenneth Russel <[email protected]>2005-04-10 00:17:48 +0000
commit67edaed7d4b9da5080bdd5d80a9206b821b93d7a (patch)
treedcd3b54407ecd1431fe4d1da0b08e284f3a4f829 /src
parent24910710f488b9a8d1c1f401c5ed602b16f73fc5 (diff)
Fixed Issue 150: Rendering artifacts with GLJPanel.
Fixed off-by-one error in rendering of GLJPanel's hardware-accelerated rendering results to the screen. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@257 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'src')
-rw-r--r--src/net/java/games/jogl/GLJPanel.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net/java/games/jogl/GLJPanel.java b/src/net/java/games/jogl/GLJPanel.java
index 6b9b52ec7..234908b80 100644
--- a/src/net/java/games/jogl/GLJPanel.java
+++ b/src/net/java/games/jogl/GLJPanel.java
@@ -531,10 +531,10 @@ public final class GLJPanel extends JPanel implements GLDrawable {
// Should figure out if we need to set the image scaling
// preference to FAST since it doesn't require subsampling
// of pixels -- FIXME
- for (int i = 0; i < panelHeight - 1; i++) {
+ for (int i = 0; i < panelHeight; i++) {
g.drawImage(offscreenImage,
0, i, panelWidth, i+1,
- 0, panelHeight - i - 2, panelWidth, panelHeight - i - 1,
+ 0, panelHeight - i - 1, panelWidth, panelHeight - i,
GLJPanel.this);
}
} else {