[Pixelle-commit] SF.net SVN: pixelle:[169] trunk/pixelle/src/com/mebigfatguy/pixelle/ PixelleFrame.
Brought to you by:
dbrosius
|
From: <dbr...@us...> - 2008-11-12 06:11:56
|
Revision: 169
http://pixelle.svn.sourceforge.net/pixelle/?rev=169&view=rev
Author: dbrosius
Date: 2008-11-12 06:11:46 +0000 (Wed, 12 Nov 2008)
Log Message:
-----------
fix dimension x,y switching
Modified Paths:
--------------
trunk/pixelle/src/com/mebigfatguy/pixelle/PixelleFrame.java
Modified: trunk/pixelle/src/com/mebigfatguy/pixelle/PixelleFrame.java
===================================================================
--- trunk/pixelle/src/com/mebigfatguy/pixelle/PixelleFrame.java 2008-07-16 03:20:04 UTC (rev 168)
+++ trunk/pixelle/src/com/mebigfatguy/pixelle/PixelleFrame.java 2008-11-12 06:11:46 UTC (rev 169)
@@ -290,11 +290,11 @@
double divH = (double)cHeight / (double)iHeight;
double divW = (double)cWidth / (double)iWidth;
double div = Math.min(divH, divW);
- return new Dimension((int)(div * iHeight), (int)(div * iWidth));
+ return new Dimension((int)(div * iWidth), (int)(div * iHeight));
}
else {
double zoomFactor = zoom.getZoom();
- return new Dimension((int)(image.getHeight() * zoomFactor), (int)(image.getWidth() * zoomFactor));
+ return new Dimension((int)(image.getWidth() * zoomFactor), (int)(image.getHeight() * zoomFactor));
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|