diff options
author | Robin Cutshaw <robin@intercore.com> | 1999-12-30 03:03:21 +0000 |
---|---|---|
committer | Robin Cutshaw <robin@intercore.com> | 1999-12-30 03:03:21 +0000 |
commit | 30e35cb44b6ea11d0eac8ce0d986517f3224852a (patch) | |
tree | a4bb0182dbcf5e4ce8cd61ed4e257815d9af3957 /hw/kdrive/itsy | |
parent | f13b792a3a8d307a18cd6a41aa5a06622009e42f (diff) |
3516. Jumbo Tiny-X patch with Itsy support (#3527, Keith Packard).xf-3_9_17xf-3_9_16Za
Diffstat (limited to 'hw/kdrive/itsy')
-rw-r--r-- | hw/kdrive/itsy/itsy.c | 91 |
1 files changed, 49 insertions, 42 deletions
diff --git a/hw/kdrive/itsy/itsy.c b/hw/kdrive/itsy/itsy.c index 68ce60aaa..6da560934 100644 --- a/hw/kdrive/itsy/itsy.c +++ b/hw/kdrive/itsy/itsy.c @@ -21,7 +21,7 @@ * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR * PERFORMANCE OF THIS SOFTWARE. */ -/* $XFree86: $ */ +/* $XFree86: xc/programs/Xserver/hw/kdrive/itsy/itsy.c,v 1.1 1999/11/19 13:53:53 hohndel Exp $ */ #include "itsy.h" @@ -89,6 +89,46 @@ itsyScreenInit (KdScreenInfo *screen) return TRUE; } +static unsigned short itsyIntensity[16] = { + 0xffff, + 0xffff, + 0xedb6, + 0xdb6d, + 0xc924, + 0xb6db, + 0xa492, + 0x9249, + 0x8000, + 0x6db6, + 0x5b6d, + 0x4924, + 0x36db, + 0x2492, + 0x1249, + 0x0000, +}; + +Bool +itsyCreateColormap (ColormapPtr pmap) +{ + int i; + + for (i = 0; i < 16; i++) + { + pmap->red[i].co.local.red = itsyIntensity[i]; + pmap->red[i].co.local.green = itsyIntensity[i]; + pmap->red[i].co.local.blue = itsyIntensity[i]; + } + return TRUE; +} + +Bool +itsyInitScreen (ScreenPtr pScreen) +{ + pScreen->CreateColormap = itsyCreateColormap; + return TRUE; +} + void itsyPreserve (KdCardInfo *card) { @@ -147,49 +187,10 @@ itsyCardFini (KdCardInfo *card) fprintf (stderr, "itsyFini done\n"); } -static unsigned short itsyIntensity[16] = { - 0xffff, - 0xffff, - 0xedb6, - 0xdb6d, - 0xc924, - 0xb6db, - 0xa492, - 0x9249, - 0x8000, - 0x6db6, - 0x5b6d, - 0x4924, - 0x36db, - 0x2492, - 0x1249, - 0x0000, -}; - -Bool -itsyCreateColormap (ColormapPtr pmap) -{ - int i; - - for (i = 0; i < 16; i++) - { - pmap->red[i].co.local.red = itsyIntensity[i]; - pmap->red[i].co.local.green = itsyIntensity[i]; - pmap->red[i].co.local.blue = itsyIntensity[i]; - } - return TRUE; -} - -Bool -itsySetupScreen (ScreenPtr pScreen) -{ - pScreen->CreateColormap = itsyCreateColormap; - return FALSE; -} - KdCardFuncs itsyFuncs = { itsyCardInit, /* cardinit */ itsyScreenInit, /* scrinit */ + itsyInitScreen, /* initScreen */ itsyPreserve, /* preserve */ itsyEnable, /* enable */ itsyDPMS, /* dpms */ @@ -204,7 +205,7 @@ KdCardFuncs itsyFuncs = { 0, /* finiCursor */ 0, /* recolorCursor */ - itsySetupScreen, /* initAccel */ + 0, /* initAccel */ 0, /* enableAccel */ 0, /* disableAccel */ 0, /* finiAccel */ @@ -309,3 +310,9 @@ OsVendorInit (void) { KdOsInit (&ItsyOsFuncs); } + +int +ddxProcessArgument (int argc, char **argv, int i) +{ + return KdProcessArgument (argc, argv, i); +} |