fixing some origin issues

in some cases, the origin was wrong, now it takes into account the
origin in the header record, the origin set by SETWINDOWORGEX, and
the reset to "header origin" that seems to happen if
SETWINDOWEXTEX is used. seems a bit magical, but the EMF spec didn't
help much.