Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucsd!ogccse!blake!ndsuvax!ncsmith From: ncsmith@ndsuvax.UUCP (Timothy Lyle Smith) Newsgroups: comp.graphics Subject: Re: Turbo Pascal Colors Message-ID: <3023@ndsuvax.UUCP> Date: 19 Oct 89 04:02:49 GMT References: <503@uwm.edu> Reply-To: ncsmith@ndsuvax.UUCP (Timothy Lyle Smith) Organization: North Dakota State University, Fargo Lines: 28 In article <503@uwm.edu> jrn@csd4.csd.uwm.edu (James Ray Norton) writes: > >Hi got a question: > >I am using Turbo Pascal V 5.0. And I am trying to set the RGB color palette >by doing the following...... > >begin > Mode:=VGAHI; > Driver:=VGA; > InitGraph(Drover, Mode, 'a:\'); [stuff about getting only the default colors] The problem here is that the range of colors in the VGAHI mode is only the default colors. The VGA standard allows 256 colors in the 320x200 mode only. I have seen your problem with other people so I can only assume that Borland did not allow the SetRGBPalette function to work in any other mode besides 320x200, this assumes that you have the over 256K of video memory that is needed to use more than 16 colors in the 640x480 mode. -- Tim Smith North Dakota State University, Fargo, ND 58105 UUCP: ...!uunet!ndsuvax!ncsmith | 90% of the people on this planet BITNET: ncsmith@ndsuvax.bitnet | are crazy and the rest of us are INTERNET: ncsmith@plains.NoDak.edu | in grave danger of contamination