Merge pull request #6738 from penpot/ladybenko-11247-enable-dpr-when-render-wasm

🔧 Enable render-wasm-dpr by default
This commit is contained in:
Alejandro Alonso 2025-06-23 11:46:24 +02:00 committed by GitHub
commit 43b19ba33e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View file

@ -149,7 +149,8 @@
:enable-onboarding
:enable-dashboard-templates-section
:enable-google-fonts-provider
:enable-component-thumbnails])
:enable-component-thumbnails
:enable-render-wasm-dpr])
(defn parse
[& flags]

View file

@ -73,7 +73,7 @@
(mem/get-list-size cells GRID-LAYOUT-CELL-ENTRY-SIZE))
(def dpr
(if use-dpr? js/window.devicePixelRatio 1.0))
(if use-dpr? (if (exists? js/window) js/window.devicePixelRatio 1.0) 1.0))
;; Based on app.main.render/object-svg
(mf/defc object-svg