Fix middle line drawing on x64 platforms.