From c695c419d170a3893e44885175dbe1f535e9f1b5 Mon Sep 17 00:00:00 2001 From: Hertatijanto Hartono Date: Mon, 27 Jul 2020 03:27:31 +0700 Subject: [PATCH] Utilise GetZoomFactor() in webview sample Show example of using GetZoomFactor(). Closes https://github.com/wxWidgets/wxWidgets/pull/1999 --- samples/webview/webview.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/samples/webview/webview.cpp b/samples/webview/webview.cpp index 224f14efa2..de595b96d1 100644 --- a/samples/webview/webview.cpp +++ b/samples/webview/webview.cpp @@ -1019,6 +1019,7 @@ void WebFrame::OnSetZoom(wxCommandEvent& evt) } else if (evt.GetId() == m_tools_custom->GetId()) { + m_zoomFactor = m_browser->GetZoomFactor() * 100; OnZoomCustom(evt); } else