Fixed bugs in hex color, ViewTrans scaling, and 2D sprite coordinates.