mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-29 21:46:40 +00:00
XFree86 4.3.0.1
This commit is contained in:
parent
9508a382f8
commit
d568221710
438 changed files with 42562 additions and 37394 deletions
|
|
@ -12,6 +12,8 @@ the suitability of this software for any purpose. It is provided "as
|
|||
is" without express or implied warranty.
|
||||
|
||||
*/
|
||||
/* $XFree86: xc/programs/Xserver/hw/xnest/Pixmap.c,v 3.6 2003/01/10 13:29:40 eich Exp $ */
|
||||
|
||||
#include "X.h"
|
||||
#include "Xproto.h"
|
||||
#include "miscstruct.h"
|
||||
|
|
@ -26,7 +28,11 @@ is" without express or implied warranty.
|
|||
|
||||
#include "Display.h"
|
||||
#include "Screen.h"
|
||||
#include "Pixmap.h"
|
||||
#include "XNPixmap.h"
|
||||
|
||||
#ifdef PIXPRIV
|
||||
int xnestPixmapPrivateIndex;
|
||||
#endif
|
||||
|
||||
PixmapPtr xnestCreatePixmap(pScreen, width, height, depth)
|
||||
ScreenPtr pScreen;
|
||||
|
|
@ -36,7 +42,7 @@ PixmapPtr xnestCreatePixmap(pScreen, width, height, depth)
|
|||
{
|
||||
PixmapPtr pPixmap;
|
||||
|
||||
pPixmap = (PixmapPtr)xalloc(sizeof(PixmapRec) + sizeof(xnestPrivPixmap));
|
||||
pPixmap = AllocatePixmap(pScreen, sizeof(xnestPrivPixmap));
|
||||
if (!pPixmap)
|
||||
return NullPixmap;
|
||||
pPixmap->drawable.type = DRAWABLE_PIXMAP;
|
||||
|
|
@ -52,7 +58,12 @@ PixmapPtr xnestCreatePixmap(pScreen, width, height, depth)
|
|||
pPixmap->drawable.serialNumber = NEXT_SERIAL_NUMBER;
|
||||
pPixmap->refcnt = 1;
|
||||
pPixmap->devKind = PixmapBytePad(width, depth);
|
||||
#ifdef PIXPRIV
|
||||
pPixmap->devPrivates[xnestPixmapPrivateIndex].ptr =
|
||||
(pointer)((char *)pPixmap + pScreen->totalPixmapSize);
|
||||
#else
|
||||
pPixmap->devPrivate.ptr = (pointer)(pPixmap + 1);
|
||||
#endif
|
||||
if (width && height)
|
||||
xnestPixmapPriv(pPixmap)->pixmap =
|
||||
XCreatePixmap(xnestDisplay,
|
||||
|
|
@ -82,7 +93,6 @@ RegionPtr xnestPixmapToRegion(pPixmap)
|
|||
register int x, y;
|
||||
unsigned long previousPixel, currentPixel;
|
||||
BoxRec Box;
|
||||
int nWidth;
|
||||
Bool overlap;
|
||||
|
||||
ximage = XGetImage(xnestDisplay, xnestPixmap(pPixmap), 0, 0,
|
||||
|
|
|
|||
Loading…
Reference in a new issue