From: Vic Newsgroups: comp.os.msdos.djgpp Subject: Re: allegro SVGA modes Date: Sun, 19 Oct 1997 22:26:01 -0400 Organization: Communications Accessibles Montreal, Quebec Canada Lines: 14 Message-ID: <344AC139.226C@cam.org> References: <625mhq$i7k$1 AT news DOT cybernex DOT net> NNTP-Posting-Host: dynppp-138.hip.cam.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Ethan Giordano wrote: > > i've been using VGA mode 320x200 for a while but want to use SVGA 16bit > 640x480. how do palettes work in SVGA mode when you can have more than 256 > colors? i couldn't find any SVGA docs with what is included with allegro. you use the makecol function. makecol(R, G, B). Like this : putpixel(screen,100,100, makecol(100,100,100) ); for a shade of gray. In any color mode, makecol will return the closest color to what you gave. -- --> http://www.cam.org/~tudor <-- Go ahead and build another Messiah We dig another grave...