Revision: 490 http://skycastle.svn.sourceforge.net/skycastle/?rev=490&view=rev Author: zzorn Date: 2008-04-27 15:46:43 -0700 (Sun, 27 Apr 2008) Log Message: ----------- With the mystery divisor of 10, the projection is close to correct, but still off. Whence does it come from, this mystery factor? Modified Paths: -------------- trunk/skycastle/modules/ui/src/main/java/org/skycastle/sketch/SketchView.java Modified: trunk/skycastle/modules/ui/src/main/java/org/skycastle/sketch/SketchView.java =================================================================== --- trunk/skycastle/modules/ui/src/main/java/org/skycastle/sketch/SketchView.java 2008-04-27 22:40:12 UTC (rev 489) +++ trunk/skycastle/modules/ui/src/main/java/org/skycastle/sketch/SketchView.java 2008-04-27 22:46:43 UTC (rev 490) @@ -207,7 +207,7 @@ { final float width = view.getWidth(); final float height = view.getHeight(); - final float scale = myViewSizeHorizontally / width; + final float scale = myViewSizeHorizontally / ( 10.0f * width ); listener.onProjectionChanged( myCameraX + 0.5f * width * scale, myCameraY - 0.5f * height * scale, -scale, This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.