From 443e3ae3a44211720742e20fb330ad925a41d6d7 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sun, 14 Oct 2018 17:34:02 +0900 Subject: [PATCH] examples/windowsize: Bug fix: Strange delta of window size --- examples/windowsize/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/windowsize/main.go b/examples/windowsize/main.go index 9a87a3a14..efe61e03a 100644 --- a/examples/windowsize/main.go +++ b/examples/windowsize/main.go @@ -81,7 +81,7 @@ func update(screen *ebiten.Image) error { } screenScale := ebiten.ScreenScale() - d := int(32 / screenScale) + const d = 16 screenWidth, screenHeight := screen.Size() fullscreen := ebiten.IsFullscreen() runnableInBackground := ebiten.IsRunnableInBackground()