Skip to content
Browse files

fixing scaleimage

  • Loading branch information...
1 parent 278cb4b commit 1681f0a8345fde1c7975606866e60fc208c888de Danny Yoo committed Feb 20, 2011
Showing with 8 additions and 8 deletions.
  1. +2 −2 .settings/com.google.appengine.eclipse.core.prefs
  2. +6 −6 war/js/mzscheme-vm/support.js
View
4 .settings/com.google.appengine.eclipse.core.prefs
@@ -1,5 +1,5 @@
-#Wed Feb 09 15:25:29 GMT-05:00 2011
+#Fri Feb 18 12:07:22 EST 2011
eclipse.preferences.version=1
-filesCopiedToWebInfLib=datanucleus-appengine-1.0.2.final.jar|datanucleus-core-1.1.4-gae.jar|datanucleus-jpa-1.1.4.jar|geronimo-jpa_3.0_spec-1.1.1.jar|geronimo-jta_1.1_spec-1.1.1.jar|jdo2-api-2.3-ea.jar|appengine-api-1.0-sdk-1.2.2.jar
+filesCopiedToWebInfLib=appengine-jsr107cache-1.3.7.jar|jdo2-api-2.3-eb.jar|datanucleus-appengine-1.0.7.final.jar|datanucleus-jpa-1.1.5.jar|geronimo-jta_1.1_spec-1.1.1.jar|geronimo-jpa_3.0_spec-1.1.1.jar|datanucleus-core-1.1.5.jar|jsr107cache-1.1.jar|appengine-api-labs-1.3.7.jar|appengine-api-1.0-sdk-1.3.7.jar
ormEnhancementInclusions=src/
validationExclusions=
View
12 war/js/mzscheme-vm/support.js
@@ -10560,7 +10560,7 @@ ScaleImage.prototype = heir(BaseImage.prototype);
ScaleImage.prototype.render = function(ctx, x, y) {
ctx.save();
ctx.scale(this.xFactor, this.yFactor);
- this.img.render(ctx, x, y);
+ this.img.render(ctx, x / this.xFactor, y / this.yFactor);
ctx.restore();
};
@@ -10619,12 +10619,12 @@ CropImage.prototype.isEqual = function(other, aUnionFind) {
var FrameImage = function(img) {
BaseImage.call(this,
- Math.floor(img.getWidth()/ 2),
- Math.floor(img.getHeight()/ 2));
+ Math.floor(img.getWidth()/ 2),
+ Math.floor(img.getHeight()/ 2));
this.img = img;
- this.width = img.getWidth();
- this.height = img.getHeight();
+ this.width = img.getWidth();
+ this.height = img.getHeight();
};
FrameImage.prototype = heir(BaseImage.prototype);
@@ -11003,7 +11003,7 @@ var TextImage = function(msg, size, color, face, family, style, weight, underlin
TextImage.prototype = heir(BaseImage.prototype);
-
+
TextImage.prototype.fallbackOnFont = function() {
// Defensive: if the browser doesn't support certain features, we
// reduce to a smaller feature set and try again.

0 comments on commit 1681f0a

Please sign in to comment.
Something went wrong with that request. Please try again.