save ifDrawText state

save mIfDrawText state and restore