Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!elroy.jpl.nasa.gov!decwrl!pa.dec.com!wsl.dec.com!klee From: klee@wsl.dec.com (Ken Lee) Newsgroups: comp.windows.x Subject: Re: negative Xlib drawing coordinates Message-ID: <1991Apr18.110047@wsl.dec.com> Date: 18 Apr 91 18:00:47 GMT References: <3644@lamont.ldgo.columbia.edu> Sender: news@pa.dec.com (News) Reply-To: klee@wsl.dec.com Organization: DEC Western Software Laboratory Lines: 17 In article <3644@lamont.ldgo.columbia.edu>, rbd@lamont.ldgo.columbia.edu (roger davis) writes: |> Is it safe to use negative pixel coordinates as arguments to |> Xlib drawing routines, e.g., |> |> XDrawLine(dpy, drw, gc, -20, -80, 100, 200); |> |> and does Xlib or the server properly clip such operations at |> the boundaries of the drawable? Is this behavior well-defined |> for all server/Xlib implementations? Yes. Yes. It is well defined for non-buggy implementations. -- Ken Lee DEC Western Software Laboratory, Palo Alto, Calif. Internet: klee@wsl.dec.com uucp: uunet!decwrl!klee