nanogui: Contributed clock program to nano-X


Previous by date: 6 Jul 1999 17:18:17 -0000 Re: Funny behaviour of nano-X, Greg Haerr
Next by date: 6 Jul 1999 17:18:17 -0000 Re: Contributed clock program to nano-X, Alistair Riddoch
Previous in thread:
Next in thread: 6 Jul 1999 17:18:17 -0000 Re: Contributed clock program to nano-X, Alistair Riddoch

Subject: Contributed clock program to nano-X
From: Greg Haerr ####@####.####
Date: 6 Jul 1999 17:18:17 -0000
Message-Id: <01BBF774.CEDDA5C0.greg@censoft.com>

Al,
	I have added the clock program to MicroWindows v0.82, which
I will release shortly.

	It's pretty cool!  Anyway, I have a couple comments.  I changed
the color model to RGB a while back, so any function that takes a GR_COLOR,
like GrSetGCForeground, must use an RGB color, or a color macro, like WHITE.
Values like si.white are technically PIXELVALs, not COLORVALs, so they
can't be passed from the upper level.  The system converts COLORVALS to
PIXELVALs based on the available palette.  The file device.h has 16
reserved colors that are guaranteed to be in a palette (see devpal4.c/devpal8.c)
and can be used by name.  These work by indexing the palette entry (see PALINDEX
macro).  So I changed all the si.white/si.black to WHITE and BLACK, and 8 to GRAY.

	The time is one hour off over here.  Is that because you're not
adding back the daylight savings time?  Does gettimeofday() handle that?

Greg

Previous by date: 6 Jul 1999 17:18:17 -0000 Re: Funny behaviour of nano-X, Greg Haerr
Next by date: 6 Jul 1999 17:18:17 -0000 Re: Contributed clock program to nano-X, Alistair Riddoch
Previous in thread:
Next in thread: 6 Jul 1999 17:18:17 -0000 Re: Contributed clock program to nano-X, Alistair Riddoch


Powered by ezmlm-browse 0.20.