mirror of
https://github.com/fltk/fltk.git
synced 2026-05-28 11:25:22 +08:00
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
This commit is contained in:
+11
-5
@@ -3,7 +3,7 @@
|
|||||||
//
|
//
|
||||||
// Colormap generation program for the Fast Light Tool Kit (FLTK).
|
// 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
|
// 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
|
// 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
|
// 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>
|
#include <stdio.h>
|
||||||
|
|
||||||
// This table is initialized with color values I got by reading the
|
// 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 main() {
|
||||||
int i,r,g,b;
|
int i,r,g,b;
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
/* Read colormap colors into internal table */
|
/* Read colormap colors into internal table */
|
||||||
long cmwin;
|
long cmwin;
|
||||||
@@ -137,9 +141,11 @@ int main() {
|
|||||||
getmcolor(i,&cmap[i][0],&cmap[i][1],&cmap[i][2]);
|
getmcolor(i,&cmap[i][0],&cmap[i][1],&cmap[i][2]);
|
||||||
winclose(cmwin);
|
winclose(cmwin);
|
||||||
#endif
|
#endif
|
||||||
// overwrite the X allocation area with one color so people are
|
|
||||||
// discouraged from using it:
|
// overwrite the X allocation area with one color so people are
|
||||||
//for (i=16; i<32; i++) {cmap[i][0]=cmap[i][1]=cmap[i][2] = 85;}
|
// 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:
|
// fill in the gray ramp:
|
||||||
background(0xc0, 0xc0, 0xc0); // microsoft colors
|
background(0xc0, 0xc0, 0xc0); // microsoft colors
|
||||||
|
|||||||
Reference in New Issue
Block a user