Skip to content

Commit

Permalink
Add ContentScale func
Browse files Browse the repository at this point in the history
  • Loading branch information
unitoftime committed May 28, 2024
1 parent a7a1a6c commit 6c450d1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions window.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6c450d1

Please sign in to comment.