ebiten: refactoring

This commit is contained in:
Hajime Hoshi 2022-05-22 22:35:03 +09:00
parent 6cd655b5ce
commit 6b416d2340
3 changed files with 3 additions and 7 deletions

View File

@ -17,6 +17,4 @@
package ebiten
func isDebug() bool {
return true
}
const isDebug = true

View File

@ -17,6 +17,4 @@
package ebiten
func isDebug() bool {
return false
}
const isDebug = false

View File

@ -124,7 +124,7 @@ func (i *imageDumper) update() error {
}
if keyname := os.Getenv(envInternalImagesKey); keyname != "" {
if isDebug() {
if isDebug {
if key, ok := keyNameToKeyCode(keyname); ok {
i.hasDumpInternalImagesKey = true
i.dumpInternalImagesKey = key