2
* Id: fbgetsp.c,v 1.1 1999/11/02 03:54:45 keithp Exp $
4
* Copyright � 1998 Keith Packard
6
* Permission to use, copy, modify, distribute, and sell this software and its
7
* documentation for any purpose is hereby granted without fee, provided that
8
* the above copyright notice appear in all copies and that both that
9
* copyright notice and this permission notice appear in supporting
10
* documentation, and that the name of Keith Packard not be used in
11
* advertising or publicity pertaining to distribution of the software without
12
* specific, written prior permission. Keith Packard makes no
13
* representations about the suitability of this software for any purpose. It
14
* is provided "as is" without express or implied warranty.
16
* KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
17
* INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
18
* EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR
19
* CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
20
* DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
21
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
22
* PERFORMANCE OF THIS SOFTWARE.
24
/* $XFree86: xc/programs/Xserver/fb/fbgetsp.c,v 1.6 2001/05/29 04:54:09 keithp Exp $ */
29
fbGetSpans(DrawablePtr pDrawable,
43
* XFree86 DDX empties the root borderClip when the VT is
44
* switched away; this checks for that case
46
if (!fbDrawableEnabled(pDrawable))
50
if (pDrawable->bitsPerPixel != BitsPerPixel(pDrawable->depth))
52
fb24_32GetSpans (pDrawable, wMax, ppt, pwidth, nspans, pchardstStart);
57
fbGetDrawable (pDrawable, src, srcStride, srcBpp, srcXoff, srcYoff);
61
xoff = (int) (((long) pchardstStart) & (FB_MASK >> 3));
62
dst = (FbBits *) (pchardstStart - xoff);
64
fbBlt (src + (ppt->y + srcYoff) * srcStride, srcStride,
65
(ppt->x + srcXoff) * srcBpp,
80
pchardstStart += PixmapBytePad(*pwidth, pDrawable->depth);