fix: check nil argument in blitFullFrom method

pull/2/merge
Qingping Hou 12 years ago
parent 8cdcca148b
commit 6e72569ce2

@ -100,5 +100,9 @@ function Screen:getCurrentScreenBB()
end
function Screen:restoreFromBB(bb)
fb.bb:blitFullFrom(bb)
if bb then
fb.bb:blitFullFrom(bb)
else
debug("Got nil bb in restoreFromSavedBB!")
end
end

Loading…
Cancel
Save