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

« back to all changes in this revision

Viewing changes to mi/micmap.c

  • Committer: Bazaar Package Importer
  • Author(s): Rodrigo Parra Novo
  • Date: 2006-07-25 20:06:28 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20060725200628-gjmmd9gxfxdc4ejs
Tags: 1:1.1.1-0ubuntu1
* New Upstream version
* Changed Build-Depends from mesa-swrast-source to mesa-swx11-source,
  following Debian package nomenclature
* Re-did 12_security_policy_in_etc.diff for 1.1.1
* Dropped 15_security_allocate_local.diff (applied upstream)
* Dropped 16_SECURITY_setuid.diff (applied upstream)
* Dropped 000_ubuntu_fix_read_kernel_mapping.patch (applied upstream)
* Dropped 002_ubuntu_fix_for_certain_intel_chipsets.patch (applied upstream)
* Updated versioned Build-Depends on mesa-swx11-source to version
  6.5.0.cvs.20060725-0ubuntu1
* Added arrayobj.c, arrayobj.h, bitset.h & rbadaptors.h to
  GL/symlink-mesa.sh (linked from mesa-swx11-source)
* Added arrayobj.c to default build target on GL/mesa/main

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
#include "globals.h"
49
49
#include "micmap.h"
50
50
 
51
 
ColormapPtr miInstalledMaps[MAXSCREENS];
 
51
_X_EXPORT ColormapPtr miInstalledMaps[MAXSCREENS];
52
52
 
53
53
static Bool miDoInitVisuals(VisualPtr *visualp, DepthPtr *depthp, int *nvisualp,
54
54
                int *ndepthp, int *rootDepthp, VisualID *defaultVisp,
55
55
                unsigned long sizes, int bitsPerRGB, int preferredVis);
56
56
 
57
 
miInitVisualsProcPtr miInitVisualsProc = miDoInitVisuals;
 
57
_X_EXPORT miInitVisualsProcPtr miInitVisualsProc = miDoInitVisuals;
58
58
 
59
 
int
 
59
_X_EXPORT int
60
60
miListInstalledColormaps(ScreenPtr pScreen, Colormap *pmaps)
61
61
{
62
62
    if (miInstalledMaps[pScreen->myNum]) {
66
66
    return 0;
67
67
}
68
68
 
69
 
void
 
69
_X_EXPORT void
70
70
miInstallColormap(ColormapPtr pmap)
71
71
{
72
72
    int index = pmap->pScreen->myNum;
85
85
    }
86
86
}
87
87
 
88
 
void
 
88
_X_EXPORT void
89
89
miUninstallColormap(ColormapPtr pmap)
90
90
{
91
91
    int index = pmap->pScreen->myNum;
102
102
    }
103
103
}
104
104
 
105
 
void
 
105
_X_EXPORT void
106
106
miResolveColor(unsigned short *pred, unsigned short *pgreen,
107
107
                unsigned short *pblue, VisualPtr pVisual)
108
108
{
124
124
    }
125
125
}
126
126
 
127
 
Bool
 
127
_X_EXPORT Bool
128
128
miInitializeColormap(ColormapPtr pmap)
129
129
{
130
130
    register unsigned i;
209
209
    outdefs[i].blue = pmap->blue[blue >> pVisual->offsetBlue].co.local.blue; \
210
210
}
211
211
 
212
 
int
 
212
_X_EXPORT int
213
213
miExpandDirectColors(ColormapPtr pmap, int ndef, xColorItem *indefs,
214
214
                        xColorItem *outdefs)
215
215
{
269
269
    return nresult;
270
270
}
271
271
 
272
 
Bool
 
272
_X_EXPORT Bool
273
273
miCreateDefColormap(ScreenPtr pScreen)
274
274
{
275
275
/* 
386
386
 
387
387
static miVisualsPtr     miVisuals;
388
388
 
389
 
void
 
389
_X_EXPORT void
390
390
miClearVisualTypes()
391
391
{
392
392
    miVisualsPtr v;
398
398
}
399
399
 
400
400
 
401
 
Bool
 
401
_X_EXPORT Bool
402
402
miSetVisualTypesAndMasks(int depth, int visuals, int bitsPerRGB, 
403
403
                         int preferredCVC,
404
404
                         Pixel redMask, Pixel greenMask, Pixel blueMask)
432
432
    return TRUE;
433
433
}
434
434
 
435
 
Bool
 
435
_X_EXPORT Bool
436
436
miSetVisualTypes(int depth, int visuals, int bitsPerRGB, int preferredCVC)
437
437
{
438
438
    return miSetVisualTypesAndMasks (depth, visuals, bitsPerRGB,
439
439
                                     preferredCVC, 0, 0, 0);
440
440
}
441
441
 
442
 
int
 
442
_X_EXPORT int
443
443
miGetDefaultVisualMask(int depth)
444
444
{
445
445
    if (depth > MAX_PSEUDO_DEPTH)
463
463
    return FALSE;
464
464
}
465
465
 
466
 
Bool
 
466
_X_EXPORT Bool
467
467
miSetPixmapDepths (void)
468
468
{
469
469
    int d, f;
481
481
    return TRUE;
482
482
}
483
483
 
484
 
Bool
 
484
_X_EXPORT Bool
485
485
miInitVisuals(VisualPtr *visualp, DepthPtr *depthp, int *nvisualp,
486
486
                int *ndepthp, int *rootDepthp, VisualID *defaultVisp,
487
487
                unsigned long sizes, int bitsPerRGB, int preferredVis)
587
587
        if (nvtype)
588
588
        {
589
589
            vid = (VisualID *) xalloc (nvtype * sizeof (VisualID));
590
 
            if (!vid)
 
590
            if (!vid) {
 
591
                xfree(preferredCVCs);
591
592
                return FALSE;
 
593
            }
592
594
        }
593
595
        depth->depth = d;
594
596
        depth->numVids = nvtype;