~ubuntu-branches/ubuntu/intrepid/xserver-xgl/intrepid

« back to all changes in this revision

Viewing changes to fb/fbbstore.c

  • Committer: Bazaar Package Importer
  • Author(s): Matthew Garrett
  • Date: 2006-02-13 14:21:43 UTC
  • Revision ID: james.westby@ubuntu.com-20060213142143-mad6z9xzem7hzxz9
Tags: upstream-7.0.0
Import upstream version 7.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Id: fbbstore.c,v 1.1 1999/11/02 03:54:45 keithp Exp $
 
3
 *
 
4
 * Copyright © 1998 Keith Packard
 
5
 *
 
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.
 
15
 *
 
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.
 
23
 */
 
24
/* $XFree86: xc/programs/Xserver/fb/fbbstore.c,v 1.1 1999/11/19 13:53:42 hohndel Exp $ */
 
25
 
 
26
#ifdef HAVE_DIX_CONFIG_H
 
27
#include <dix-config.h>
 
28
#endif
 
29
 
 
30
#include "fb.h"
 
31
 
 
32
void
 
33
fbSaveAreas(PixmapPtr   pPixmap,
 
34
            RegionPtr   prgnSave,
 
35
            int         xorg,
 
36
            int         yorg,
 
37
            WindowPtr   pWin)
 
38
{
 
39
    fbCopyWindowProc (&pWin->drawable,
 
40
                      &pPixmap->drawable,
 
41
                      0,
 
42
                      REGION_RECTS(prgnSave),
 
43
                      REGION_NUM_RECTS(prgnSave),
 
44
                      xorg, yorg,
 
45
                      FALSE,
 
46
                      FALSE,
 
47
                      0,0);
 
48
}
 
49
 
 
50
void
 
51
fbRestoreAreas(PixmapPtr    pPixmap,
 
52
               RegionPtr    prgnRestore,
 
53
               int          xorg,
 
54
               int          yorg,
 
55
               WindowPtr    pWin)
 
56
{
 
57
    fbCopyWindowProc (&pPixmap->drawable,
 
58
                      &pWin->drawable,
 
59
                      0,
 
60
                      REGION_RECTS(prgnRestore),
 
61
                      REGION_NUM_RECTS(prgnRestore),
 
62
                      -xorg, -yorg,
 
63
                      FALSE,
 
64
                      FALSE,
 
65
                      0,0);
 
66
}