From 2fd4d0586fe9637b14480e03839fd586d9660b89 Mon Sep 17 00:00:00 2001 From: Mikolaj Boc Date: Mon, 31 Oct 2022 16:08:44 +0100 Subject: [PATCH] Call qtUpdateApi on module as expected MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The qtUpdateDpi function is a module function, not a scope function (regardless of it being window-scope self or QtLoader-scope self). Therefore it should be executed with module as this. Fixes: QTBUG-108112 Pick-to: 6.4 Change-Id: Ib4604a43dbdd0caa114d3d892ea97b5ee4c9a9a8 Reviewed-by: Aleksandr Reviakin Reviewed-by: Morten Johan Sørvig --- src/plugins/platforms/wasm/qtloader.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/platforms/wasm/qtloader.js b/src/plugins/platforms/wasm/qtloader.js index 33f27bd9b2..cd411e1f69 100644 --- a/src/plugins/platforms/wasm/qtloader.js +++ b/src/plugins/platforms/wasm/qtloader.js @@ -581,7 +581,7 @@ function _QtLoader(config) function setFontDpi(dpi) { self.qtFontDpi = dpi; if (publicAPI.status == "Running") - self.qtUpdateDpi(); + self.module.qtUpdateDpi(); } function fontDpi() {