Path: utzoo!attcan!uunet!fernwood!decwrl!wuarchive!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!aplcen!haven!wam!bchin From: bchin@wam.umd.edu (Weiyuan W. Chin) Newsgroups: comp.windows.ms Subject: Re: Lava Flow simulator program Message-ID: <1990Oct20.123851.21019@wam.umd.edu> Date: 20 Oct 90 12:38:51 GMT Sender: usenet@wam.umd.edu (USENET Posting) Reply-To: bchin@is-next.umd.edu (Weiyuan W. Chin) Organization: University of Maryland at College Park Lines: 28 In-reply-to: garym@cognos.uucp@uunet.uu.net's message of 19 Oct 90 13:30:51 GMT >> On 19 Oct 90 13:30:51 GMT, garym@cognos.uucp@uunet.uu.net (Gary Murphy) said: >I noticed this about the WinFrac program posted earlier; why is it so >difficult to do colour cycles in ega? I can see where an ega might need >to be full-screen, but the real FractInt has had EGA cycling for _years_. Windows 3.0 defines 20 static colors (in the case of EGA/VGA, 16) so that system drawn objects such as the window borders, maximize/minimize buttons, etc. are drawn properly. There is a Windows function call - WORD SetSystemPaletteUse(hDC, wUsage) that's supposed to allow the programmer to change that palette (except black and white). Unfortunately, it's not supported by the current VGA driver... and therefore I don't think it's supported by the EGA driver either. Therefore only display drivers that support the Palette Manager (8514/A, Video 7 with 512k, and several other Super VGA drivers) and those that support the above function call can cycle the palette. >-- >o | Gary Murphy > |------------------------------------------------------------------------ >o | uunet!mitel!cunews!cognos!garym garym@cognos.uucp@uunet.uu.net > | Cognos Inc. P.O. Box 9707 Ottawa K1G 3N3 (613) 738-1338 x5537 >o | "There are many things which do not concern the process" - Joan of Arc -- Bill Chin University of Maryland College Park internet: bchin@cville.umd.edu