From 67edaed7d4b9da5080bdd5d80a9206b821b93d7a Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Sun, 10 Apr 2005 00:17:48 +0000 Subject: 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 --- src/net/java/games/jogl/GLJPanel.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/net/java/games/jogl/GLJPanel.java') 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 { -- cgit v1.2.3