From eadbabffd90536f26eca4001099c3b93724984f1 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Tue, 17 Jul 2018 22:36:55 +0900 Subject: [PATCH] examples/windowsize: Use more consts --- examples/windowsize/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/windowsize/main.go b/examples/windowsize/main.go index dad461b51..f34dd89db 100644 --- a/examples/windowsize/main.go +++ b/examples/windowsize/main.go @@ -133,14 +133,14 @@ func update(screen *ebiten.Image) error { } if inpututil.IsKeyJustPressed(ebiten.KeyT) { switch tps { - case -1: + case ebiten.UncappedTPS: tps = 30 case 30: tps = 60 case 60: tps = 120 case 120: - tps = -1 + tps = ebiten.UncappedTPS default: panic("not reached") }