save ifDrawText state

save mIfDrawText state and restore
已修改，please check