Replaced PTR_SEG_TO_LIN macro by exported MapSL function. Fixed a few ptr/segptr mismatches. Moved CONV_RECT/POINT macros to wingdi16.h.