Browse Source

Minor tweaks.

Mr.doob 11 years ago
parent
commit
fe7167c71a
2 changed files with 6 additions and 6 deletions
  1. 1 1
      src/core/BufferGeometry.js
  2. 5 5
      src/renderers/CanvasRenderer.js

+ 1 - 1
src/core/BufferGeometry.js

@@ -182,7 +182,7 @@ THREE.BufferGeometry.prototype = {
 				box.center( center );
 
 				// hoping to find a boundingSphere with a radius smaller than the
-				//  boundingSphere of the boundingBox:  sqrt(3) smaller in the best case
+				// boundingSphere of the boundingBox:  sqrt(3) smaller in the best case
 
 				var maxRadiusSq = 0;
 

+ 5 - 5
src/renderers/CanvasRenderer.js

@@ -164,13 +164,13 @@ THREE.CanvasRenderer = function ( parameters ) {
 
 	this.setViewport = function ( x, y, width, height ) {
 
-		var _viewportX = x * this.devicePixelRatio;
-		var _viewportY = y * this.devicePixelRatio;
+		var viewportX = x * this.devicePixelRatio;
+		var viewportY = y * this.devicePixelRatio;
 
-		var _viewportWidth = width * this.devicePixelRatio;
-		var _viewportHeight = height * this.devicePixelRatio;
+		var viewportWidth = width * this.devicePixelRatio;
+		var viewportHeight = height * this.devicePixelRatio;
 
-		_context.setTransform( _viewportWidth / _canvasWidth, 0, 0, - _viewportHeight / _canvasHeight, _viewportX, _canvasHeight - _viewportY );
+		_context.setTransform( viewportWidth / _canvasWidth, 0, 0, - viewportHeight / _canvasHeight, viewportX, _canvasHeight - viewportY );
 		_context.translate( _canvasWidthHalf, _canvasHeightHalf );
 
 	};