Document creation of src/fl_cmap.h with src/cmap.cxx.
This is only for developer info. Note: cmap.cxx is not included in the library. It is only used to generate fl_cmap.h. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11200 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
07ad8383ed
commit
45026bbd8f
19
src/cmap.cxx
19
src/cmap.cxx
@ -159,11 +159,30 @@ int main() {
|
||||
i++;
|
||||
}
|
||||
|
||||
// write comment into 'cmap.h' so the reader knows what it is good for
|
||||
|
||||
printf("//\n");
|
||||
printf("// \"$%s$\"\n","Id"); // avoid expansion of Id
|
||||
printf("//\n");
|
||||
printf("// DO NOT EDIT THIS FILE !\n");
|
||||
printf("//\n");
|
||||
printf("// This file must be created with \"src/cmap.cxx\".\n");
|
||||
printf("//\n");
|
||||
|
||||
// write color map values
|
||||
|
||||
for (i=0; i<256; i++) {
|
||||
printf("\t0x%02x%02x%02x00",cmap[i][0],cmap[i][1],cmap[i][2]);
|
||||
if (i < 255) printf(",\n");
|
||||
}
|
||||
printf("\n");
|
||||
|
||||
// write final comment
|
||||
|
||||
printf("//\n");
|
||||
printf("// End of \"$%s$\".\n","Id"); // avoid expansion of Id
|
||||
printf("//\n");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -1,3 +1,10 @@
|
||||
//
|
||||
// "$Id$"
|
||||
//
|
||||
// DO NOT EDIT THIS FILE !
|
||||
//
|
||||
// This file must be created with "src/cmap.cxx".
|
||||
//
|
||||
0x00000000,
|
||||
0xff000000,
|
||||
0x00ff0000,
|
||||
@ -254,3 +261,6 @@
|
||||
0xffb6ff00,
|
||||
0xffdaff00,
|
||||
0xffffff00
|
||||
//
|
||||
// End of "$Id$".
|
||||
//
|
||||
|
Loading…
x
Reference in New Issue
Block a user