mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 03:08:54 +01:00
ebiten: refactoring
This commit is contained in:
parent
6cd655b5ce
commit
6b416d2340
@ -17,6 +17,4 @@
|
||||
|
||||
package ebiten
|
||||
|
||||
func isDebug() bool {
|
||||
return true
|
||||
}
|
||||
const isDebug = true
|
||||
|
@ -17,6 +17,4 @@
|
||||
|
||||
package ebiten
|
||||
|
||||
func isDebug() bool {
|
||||
return false
|
||||
}
|
||||
const isDebug = false
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user