Browse files

oops

  • Loading branch information...
1 parent ba5b40f commit 75c2cc19c3ad1914198b673629c4749a465831fb @dyoo committed Jan 4, 2012
Showing with 2 additions and 3 deletions.
  1. +0 −1 src/org/wescheme/servlet/ImageProxy.java
  2. +2 −2 war/js/mzscheme-vm/support.js
View
1 src/org/wescheme/servlet/ImageProxy.java
@@ -1,6 +1,5 @@
package org.wescheme.servlet;
-import javax.servlet.ServletOutputStream;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
View
4 war/js/mzscheme-vm/support.js
@@ -10604,8 +10604,8 @@ var ScaleImage = function(xFactor, yFactor, img) {
Math.floor((img.getHeight() * yFactor) / 2));
this.img = img;
- this.width = img.getWidth() * xFactor;
- this.height = img.getHeight() * yFactor;
+ this.width = Math.floor(img.getWidth() * xFactor);
+ this.height = Math.floor(img.getHeight() * yFactor);
this.xFactor = xFactor;
this.yFactor = yFactor;
};

0 comments on commit 75c2cc1

Please sign in to comment.