Trivial fixes

This commit is contained in:
Hajime Hoshi 2016-07-17 04:41:28 +09:00
parent d7c2682c53
commit c8ef54ac1d
2 changed files with 4 additions and 2 deletions

View File

@ -131,7 +131,9 @@ func update(screen *ebiten.Image) error {
msg := fmt.Sprintf(`FPS: %0.2f
Num of sprites: %d
Press <- or -> to change the number of sprites`, ebiten.CurrentFPS(), sprites.Len())
ebitenutil.DebugPrint(screen, msg)
if err := ebitenutil.DebugPrint(screen, msg); err != nil {
return err
}
return nil
}

View File

@ -1,4 +1,4 @@
// Copyright 2016 Hajime Hoshi
// Copyright 2016 The Ebiten Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.