Article View: comp.os.msdos.programmer
Article #3020Re: Writing a program that uses a mouse - help needed
From: Alan Barclay
Date: Tue, 13 Nov 1990 09:25
Date: Tue, 13 Nov 1990 09:25
23 lines
1309 bytes
1309 bytes
I'm trying to get a set of colors so I can use text mode but
with a graduation from deep red->white->deep green. I'm using
a VGA and Microsoft C 5.1, the following code sets up the colors
long newcolormap[] =
{
0x000000L, 0x00003fL, 0x0a0a3fL, 0x14143fL,
0x1e1e3fL, 0x28283fL, 0x32323fL, 0x1f1f1fL,
0x323f32L, 0x283f28L, 0x1e3f1eL, 0x143f14L,
0x0a3f0aL, 0x003f00L, 0x3f0000L, 0x3f3f3fL
};
void setupvga(void)
{
_remapallpalette(newcolormap);
}
but I have to use the Norton Command Centre to change the normal
pallete colors (0,1,..,5,20,7,56,57,..,63) to sequential numbers
(0,1,...,15) as the colors at 20 & 56 .. 63 don't change. Does any
one know how to set the pallete colors like NCC does or alternately
how to set these colors over 16.
Technical Details
Message-ID:
<1583@ukpoit.co.uk>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!samsung!uunet!mcsun!ukc!axion!vision!ukpoit!alanReferences:
<1990Nov5.003125.7426@frey.nu.oz.au> <0093F67C.47A771C0@router.jhuapl.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!samsung!uunet!mcsun!ukc!axion!vision!ukpoit!alan From: alan@ukpoit.co.uk (Alan Barclay) Newsgroups: comp.os.msdos.programmer Subject: Re: Writing a program that uses a mouse - help needed Message-ID: <1583@ukpoit.co.uk> Date: 13 Nov 90 09:25:14 GMT References: <1990Nov5.003125.7426@frey.nu.oz.au> <0093F67C.47A771C0@router.jhuapl.edu> Reply-To: alan@ukc.ac.uk (Alan Barclay) Distribution: comp Organization: Post Office iT, Chesterfield Lines: 23