From 6c450d160f8452b676bcfae286c8e556c67fe217 Mon Sep 17 00:00:00 2001 From: Jacob <2606873+unitoftime@users.noreply.github.com> Date: Tue, 28 May 2024 14:03:12 -0400 Subject: [PATCH] Add ContentScale func --- window.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/window.go b/window.go index 6bee075..e122ac3 100644 --- a/window.go +++ b/window.go @@ -270,6 +270,11 @@ func (w *Window) MousePosition() (float64, float64) { return w.mousePosition[0], w.mousePosition[1] } +func (w *Window) ContentScale() (float64, float64) { + x, y := w.window.GetContentScale() + return float64(x), float64(y) +} + func (w *Window) mainthreadCacheMousePosition() { var x, y float64 var sx, sy float32