Refactor set_graphics.
This is more okay.
Merge pull request #728 from ESwordTheCat/7b#vbri1

Refactor set_graphics.