'Return a long with x and y packed inside, also handle negative x and y.'

def fixcoord(self, x, y):

    if ((x < 0) or (y < 0)):
        info = CONSOLE_SCREEN_BUFFER_INFO()
        self.GetConsoleScreenBufferInfo(self.hout, byref(info))
        if (x < 0):
            x = (info.srWindow.Right - x)
            y = (info.srWindow.Bottom + y)
    return c_int(((y << 16) | x))
