diff --git a/src/plugins/platforms/wasm/qwasmcompositor.cpp b/src/plugins/platforms/wasm/qwasmcompositor.cpp index c534cce9ef5..dfac0e0b88e 100644 --- a/src/plugins/platforms/wasm/qwasmcompositor.cpp +++ b/src/plugins/platforms/wasm/qwasmcompositor.cpp @@ -86,7 +86,7 @@ void QWasmCompositor::requestUpdate() if (m_requestUpdateHoldEnabled) return; - static auto frame = [](double frameTime, void *context) -> int { + static auto frame = [](double frameTime, void *context) -> EM_BOOL { Q_UNUSED(frameTime); QWasmCompositor *compositor = reinterpret_cast(context); @@ -94,7 +94,7 @@ void QWasmCompositor::requestUpdate() compositor->m_requestAnimationFrameId = -1; compositor->deliverUpdateRequests(); - return 0; + return EM_FALSE; }; m_requestAnimationFrameId = emscripten_request_animation_frame(frame, this); } diff --git a/src/plugins/platforms/wasm/qwasmintegration.cpp b/src/plugins/platforms/wasm/qwasmintegration.cpp index e4373749d82..a1129f54e31 100644 --- a/src/plugins/platforms/wasm/qwasmintegration.cpp +++ b/src/plugins/platforms/wasm/qwasmintegration.cpp @@ -126,14 +126,14 @@ QWasmIntegration::QWasmIntegration() // install browser window resize handler emscripten_set_resize_callback(EMSCRIPTEN_EVENT_TARGET_WINDOW, nullptr, EM_TRUE, - [](int, const EmscriptenUiEvent *, void *) -> int { + [](int, const EmscriptenUiEvent *, void *) -> EM_BOOL { // This resize event is called when the HTML window is // resized. Depending on the page layout the elements might // also have been resized, so we update the Qt screen sizes // (and canvas render sizes). if (QWasmIntegration *integration = QWasmIntegration::get()) integration->resizeAllScreens(); - return 0; + return EM_FALSE; }); // install visualViewport resize handler which picks up size and scale change on mobile.