~ubuntu-branches/ubuntu/precise/xorg-server/precise-updates

« back to all changes in this revision

Viewing changes to hw/xfree86/shadowfb/shadow.c

Tags: 2:1.10.1-2
* Build xserver-xorg-core-udeb on hurd-i386.  Thanks, Samuel Thibault!
* Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
    RegionPtr prgn 
37
37
);
38
38
static Bool ShadowCreateGC(GCPtr pGC);
39
 
static Bool ShadowModifyPixmapHeader(
40
 
    PixmapPtr pPixmap,
41
 
    int width,
42
 
    int height,
43
 
    int depth,
44
 
    int bitsPerPixel,
45
 
    int devKind,
46
 
    pointer pPixData
47
 
);
48
39
 
49
40
static Bool ShadowEnterVT(int index, int flags);
50
41
static void ShadowLeaveVT(int index, int flags);
189
180
    pScreen->CloseScreen = ShadowCloseScreen;
190
181
    pScreen->CopyWindow = ShadowCopyWindow;
191
182
    pScreen->CreateGC = ShadowCreateGC;
192
 
    pScreen->ModifyPixmapHeader = ShadowModifyPixmapHeader;
193
183
 
194
184
    pScrn->EnterVT = ShadowEnterVT;
195
185
    pScrn->LeaveVT = ShadowLeaveVT;
310
300
    }
311
301
}
312
302
 
313
 
static Bool
314
 
ShadowModifyPixmapHeader(
315
 
    PixmapPtr pPixmap,
316
 
    int width,
317
 
    int height,
318
 
    int depth,
319
 
    int bitsPerPixel,
320
 
    int devKind,
321
 
    pointer pPixData
322
 
)
323
 
{
324
 
    ScreenPtr pScreen;
325
 
    ScrnInfoPtr pScrn;
326
 
    ShadowScreenPtr pPriv;
327
 
    Bool retval;
328
 
    PixmapPtr pScreenPix;
329
 
 
330
 
    if (!pPixmap)
331
 
        return FALSE;
332
 
 
333
 
    pScreen = pPixmap->drawable.pScreen;
334
 
    pScrn = xf86Screens[pScreen->myNum];
335
 
 
336
 
    pScreenPix = (*pScreen->GetScreenPixmap)(pScreen);
337
 
    
338
 
    if (pPixmap == pScreenPix && !pScrn->vtSema)
339
 
        pScreenPix->devPrivate = pScrn->pixmapPrivate;
340
 
    
341
 
    pPriv = GET_SCREEN_PRIVATE(pScreen);
342
 
 
343
 
    pScreen->ModifyPixmapHeader = pPriv->ModifyPixmapHeader;
344
 
    retval = (*pScreen->ModifyPixmapHeader)(pPixmap,
345
 
        width, height, depth, bitsPerPixel, devKind, pPixData);
346
 
    pScreen->ModifyPixmapHeader = ShadowModifyPixmapHeader;
347
 
 
348
 
    if (pPixmap == pScreenPix && !pScrn->vtSema)
349
 
    {
350
 
        pScrn->pixmapPrivate = pScreenPix->devPrivate;
351
 
        pScreenPix->devPrivate.ptr = 0;
352
 
    }
353
 
    return retval;
354
 
}
355
 
 
356
303
static void
357
304
ShadowComposite(
358
305
    CARD8 op,
1730
1677
    ShadowPolyText16, ShadowImageText8, 
1731
1678
    ShadowImageText16, ShadowImageGlyphBlt, 
1732
1679
    ShadowPolyGlyphBlt, ShadowPushPixels,
1733
 
    {NULL}              /* devPrivate */
1734
1680
};
1735
1681