videocommon: UpdateDrawRectangle cleanup

I felt this code was pretty messy so I wanted to clean it up a bit. I have tested it by changing all the graphic setting options but I am unsure if that is enough. If someone could verify I havent screwed up that would be helpful.