restorable: Bug fix: semantic inconsistency at forceRestoring

This commit is contained in:
Hajime Hoshi 2019-05-26 21:40:10 +09:00
parent da4fabeaa5
commit 83254d30d9
2 changed files with 4 additions and 1 deletions

View File

@ -29,6 +29,9 @@ func SetGraphicsDriver(driver driver.Graphics) {
}
func NeedsRestoring() bool {
if theGraphicsDriver == nil {
return false
}
return theGraphicsDriver.NeedsRestoring()
}

View File

@ -21,7 +21,7 @@ import (
)
// forceRestoring reports whether restoring forcely happens or not.
var forceRestoring = true
var forceRestoring = false
// NeedsRestoring reports whether restoring process works or not.
func NeedsRestoring() bool {