Browse Source

Rename method

WestLangley 8 years ago
parent
commit
83c9151952
2 changed files with 5 additions and 5 deletions
  1. 2 2
      docs/api/renderers/WebGLRenderer.html
  2. 3 3
      src/renderers/WebGLRenderer.js

+ 2 - 2
docs/api/renderers/WebGLRenderer.html

@@ -348,7 +348,7 @@
 		<h3>[method:Number getMaxAnisotropy]()</h3>
 		<h3>[method:Number getMaxAnisotropy]()</h3>
 		<div>This returns the anisotropy level of the textures.</div>
 		<div>This returns the anisotropy level of the textures.</div>
 
 
-		<h3>[method:Object getPhysicalSize]()</h3>
+		<h3>[method:Object getDrawingBufferSize]()</h3>
 		<div>Returns an object containing the width and height of the renderer's drawing buffer, in pixels.</div>
 		<div>Returns an object containing the width and height of the renderer's drawing buffer, in pixels.</div>
 
 
 		<h3>[method:number getPixelRatio]()</h3>
 		<h3>[method:number getPixelRatio]()</h3>
@@ -358,7 +358,7 @@
 		<div>This gets the precision used by the shaders. It returns "highp","mediump" or "lowp".</div>
 		<div>This gets the precision used by the shaders. It returns "highp","mediump" or "lowp".</div>
 
 
 		<h3>[method:Object getSize]()</h3>
 		<h3>[method:Object getSize]()</h3>
-		<div>Returns an object containing the logical width and height of the renderer's output canvas, in pixels.</div>
+		<div>Returns an object containing the width and height of the renderer's output canvas, in pixels.</div>
 
 
 		<h3>[method:null resetGLState]( )</h3>
 		<h3>[method:null resetGLState]( )</h3>
 		<div>Reset the GL state to default. Called internally if the WebGL context is lost.</div>
 		<div>Reset the GL state to default. Called internally if the WebGL context is lost.</div>

+ 3 - 3
src/renderers/WebGLRenderer.js

@@ -415,11 +415,11 @@ function WebGLRenderer( parameters ) {
 
 
 	};
 	};
 
 
-	this.getPhysicalSize = function () {
+	this.getDrawingBufferSize = function () {
 
 
 		return {
 		return {
-			width: _canvas.width,
-			height: _canvas.height
+			width: _width * _pixelRatio,
+			height: _height * _pixelRatio
 		};
 		};
 
 
 	};
 	};