fixed a problem when backporting dwm's drawtext()