1. update some define
2. update some multi resolution codes