Draw fixes

Fixes tessellation (draw_polygon) and line wrapping (draw_text_sprite).
Tested on Windows 8 & Linux.