]> OCCT Git - occt.git/commitdiff
0032597: Coding Rules, Wasm_Window - add missing setter for DevicePixelRatio property
authorkgv <kgv@opencascade.com>
Wed, 29 Sep 2021 13:47:56 +0000 (16:47 +0300)
committersmoskvin <smoskvin@opencascade.com>
Thu, 30 Sep 2021 16:39:45 +0000 (19:39 +0300)
src/Wasm/Wasm_Window.hxx

index 5485d25d432b466bc2b054c3d20b49dc97d84520..62b00b37521790ded8e9b06cbe010b03aebca9c9 100644 (file)
@@ -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;