handle win32 and gtk offset in center line