aboutsummaryrefslogtreecommitdiffstats
path: root/src/classes/com/sun/opengl/impl/mipmap/ScaleInternal.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/classes/com/sun/opengl/impl/mipmap/ScaleInternal.java')
-rw-r--r--src/classes/com/sun/opengl/impl/mipmap/ScaleInternal.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/classes/com/sun/opengl/impl/mipmap/ScaleInternal.java b/src/classes/com/sun/opengl/impl/mipmap/ScaleInternal.java
index 3a007aa39..8154df353 100644
--- a/src/classes/com/sun/opengl/impl/mipmap/ScaleInternal.java
+++ b/src/classes/com/sun/opengl/impl/mipmap/ScaleInternal.java
@@ -72,8 +72,8 @@ public class ScaleInternal {
HalveImage.halveImage( components, widthin, heightin, datain, dataout );
return;
}
- convx = (float)heightin / heightout;
- convy = (float)widthin / widthout;
+ convy = (float)heightin / heightout;
+ convx = (float)widthin / widthout;
halfconvx = convx / 2;
halfconvy = convy / 2;
for( i = 0; i < heightout; i++ ) {