summaryrefslogtreecommitdiff
path: root/src/cmap.cxx
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2016-02-20 16:41:05 +0000
committerAlbrecht Schlosser <albrechts.fltk@online.de>2016-02-20 16:41:05 +0000
commit1b5fd476b96b3aa60e1d3450e2e98960a48080e7 (patch)
tree8ffc82f72fdc94b3a87a361568d783c4d8703313 /src/cmap.cxx
parent45026bbd8f71e9cd7662c5904170950c37116eb6 (diff)
Update copyright and comments of src/cmap.cxx (no code changes).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11201 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/cmap.cxx')
-rw-r--r--src/cmap.cxx16
1 files changed, 11 insertions, 5 deletions
diff --git a/src/cmap.cxx b/src/cmap.cxx
index 0494f0e22..6fc08e023 100644
--- a/src/cmap.cxx
+++ b/src/cmap.cxx
@@ -3,7 +3,7 @@
//
// Colormap generation program for the Fast Light Tool Kit (FLTK).
//
-// Copyright 1998-2010 by Bill Spitzak and others.
+// Copyright 1998-2016 by Bill Spitzak and others.
//
// This library is free software. Distribution and use rights are outlined in
// the file "COPYING" which should have been included with this file. If this
@@ -17,8 +17,11 @@
//
// This program produces the contents of "fl_cmap.h" as stdout
+//
+// Compile, link, and run (example):
+//
+// gcc -o cmap cmap.cxx -lm && ./cmap > fl_cmap.h
-// #include <gl/gl.h>
#include <stdio.h>
// This table is initialized with color values I got by reading the
@@ -128,6 +131,7 @@ void background(uchar r, uchar g, uchar b) {
int main() {
int i,r,g,b;
+
#if 0
/* Read colormap colors into internal table */
long cmwin;
@@ -137,9 +141,11 @@ int main() {
getmcolor(i,&cmap[i][0],&cmap[i][1],&cmap[i][2]);
winclose(cmwin);
#endif
-// overwrite the X allocation area with one color so people are
-// discouraged from using it:
- //for (i=16; i<32; i++) {cmap[i][0]=cmap[i][1]=cmap[i][2] = 85;}
+
+ // overwrite the X allocation area with one color so people are
+ // discouraged from using it:
+
+ // for (i=16; i<32; i++) {cmap[i][0]=cmap[i][1]=cmap[i][2] = 85;}
// fill in the gray ramp:
background(0xc0, 0xc0, 0xc0); // microsoft colors