|
@@ -241,8 +241,8 @@
|
|
|
renderer.setSize( width, height );
|
|
|
|
|
|
var pixelRatio = renderer.getPixelRatio();
|
|
|
- var newWidth = Math.floor( width / pixelRatio ) || 1;
|
|
|
- var newHeight = Math.floor( height / pixelRatio ) || 1;
|
|
|
+ var newWidth = Math.floor( width * pixelRatio ) || 1;
|
|
|
+ var newHeight = Math.floor( height * pixelRatio ) || 1;
|
|
|
composer.setSize( newWidth, newHeight );
|
|
|
|
|
|
}
|