From 28f52d0c62033f5846698ddf589de550f8b9377e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bobu=20aka=20S=C3=A9bastien?= Date: Tue, 3 Sep 2019 11:25:33 +0200 Subject: [PATCH] fix(readme): replace deprecated autoResize() app.renderer.autoResize() is deprecated since v5. Use autoDensity instead. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index cddfcd3..e4c30a3 100644 --- a/README.md +++ b/README.md @@ -295,7 +295,7 @@ method, and supply any new `width` and `height` values. But, to make sure the canvas is resized to match the resolution, set `autoResize` to `true`. ```js -app.renderer.autoResize = true; +app.renderer.autoDensity = true; app.renderer.resize(512, 512); ``` If you want to make the canvas fill the entire window, you can apply this