From: kgv Date: Wed, 29 Sep 2021 13:47:56 +0000 (+0300) Subject: 0032597: Coding Rules, Wasm_Window - add missing setter for DevicePixelRatio property X-Git-Tag: V7_6_0~41 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=ff60d283576101f730b8c858519c00d1bb8dc943;p=occt.git 0032597: Coding Rules, Wasm_Window - add missing setter for DevicePixelRatio property --- diff --git a/src/Wasm/Wasm_Window.hxx b/src/Wasm/Wasm_Window.hxx index 5485d25d43..62b00b3752 100644 --- a/src/Wasm/Wasm_Window.hxx +++ b/src/Wasm/Wasm_Window.hxx @@ -119,6 +119,9 @@ public: //! Return device pixel ratio (logical to backing store scale factor). virtual Standard_Real DevicePixelRatio() const Standard_OVERRIDE { return myDevicePixelRatio; } + //! Sets device pixel ratio for a window with IsVirtual() flag. + void SetDevicePixelRatio (Standard_Real theDevicePixelRatio) { myDevicePixelRatio = theDevicePixelRatio; } + //! Invalidate entire window content through generation of Expose event. Standard_EXPORT virtual void InvalidateContent (const Handle(Aspect_DisplayConnection)& theDisp) Standard_OVERRIDE;