aboutsummaryrefslogtreecommitdiff
path: root/go/ui
diff options
context:
space:
mode:
Diffstat (limited to 'go/ui')
-rw-r--r--go/ui/constants.go6
-rw-r--r--go/ui/constants_wasm.go8
2 files changed, 14 insertions, 0 deletions
diff --git a/go/ui/constants.go b/go/ui/constants.go
new file mode 100644
index 00000000..052ae527
--- /dev/null
+++ b/go/ui/constants.go
@@ -0,0 +1,6 @@
+//go:build !wasm
+package ui
+
+const (
+ DRAFT_DECK_VIEW_SCALE = 0.5
+)
diff --git a/go/ui/constants_wasm.go b/go/ui/constants_wasm.go
new file mode 100644
index 00000000..e6e2bbce
--- /dev/null
+++ b/go/ui/constants_wasm.go
@@ -0,0 +1,8 @@
+package ui
+
+const (
+ // The atlas of the ebiten wasm port does not allow as big imaes as the linux version.
+ // Therefore, we scale the deck view to reduce its size.
+ // FIXME: This is only needed because the cardView rendering is very naiv.
+ DRAFT_DECK_VIEW_SCALE = 0.35
+)