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

« back to all changes in this revision

Viewing changes to hw/dmx/dmxgcops.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:
523
523
            
524
524
    if (noPanoramiXExtension)               return NULL;
525
525
    if (pDrawable->type != DRAWABLE_PIXMAP) return NULL;
526
 
    
527
 
    if (!(pXinPix = (PanoramiXRes *)LookupIDByType(pDrawable->id, XRT_PIXMAP)))
 
526
 
 
527
    if (Success != dixLookupResourceByType((pointer*) &pXinPix,
 
528
                                           pDrawable->id, XRT_PIXMAP,
 
529
                                           NullClient, DixUnknownAccess))
528
530
        return NULL;
529
531
 
530
532
    for (i = 1; i < PanoramiXNumScreens; i++) {
533
535
            PixmapPtr     pSrc;
534
536
            dmxPixPrivPtr pSrcPriv;
535
537
            
536
 
            pSrc = (PixmapPtr)LookupIDByType(pXinPix->info[i].id,
537
 
                                             RT_PIXMAP);
 
538
            dixLookupResourceByType((pointer*) &pSrc, pXinPix->info[i].id,
 
539
                                    RT_PIXMAP, NullClient, DixUnknownAccess);
538
540
            pSrcPriv = DMX_GET_PIXMAP_PRIV(pSrc);
539
541
            if (pSrcPriv->pixmap) {
540
542
                *draw = pSrcPriv->pixmap;