From b6f7a0043c13151dd063d98f419ea3fe0ad53cb7 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sun, 14 Oct 2018 19:15:26 +0900 Subject: [PATCH] examples/windowsize: Show DeviceScaleFactor --- examples/windowsize/main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/windowsize/main.go b/examples/windowsize/main.go index efe61e03a..ba11e0182 100644 --- a/examples/windowsize/main.go +++ b/examples/windowsize/main.go @@ -190,7 +190,8 @@ Press T key to switch TPS (ticks per second) Press Q key to quit Cursor: (%d, %d) TPS: Current: %0.2f / Max: %s -FPS: %0.2f`, x, y, ebiten.CurrentTPS(), tpsStr, ebiten.CurrentFPS()) +FPS: %0.2f +Device Scale Factor: %0.2f`, x, y, ebiten.CurrentTPS(), tpsStr, ebiten.CurrentFPS(), ebiten.DeviceScaleFactor()) ebitenutil.DebugPrint(screen, msg) return nil }