From: Jorge G. <cl...@us...> - 2006-10-19 19:39:56
|
Update of /cvsroot/easycalc/easycalc In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv32022 Modified Files: grprefs.c Log Message: Changes in Graph Setup form; Added checkboxes to select the functions to graph Index: grprefs.c =================================================================== RCS file: /cvsroot/easycalc/easycalc/grprefs.c,v retrieving revision 1.24 retrieving revision 1.25 diff -C2 -d -r1.24 -r1.25 *** grprefs.c 16 Oct 2006 18:58:37 -0000 1.24 --- grprefs.c 19 Oct 2006 19:39:50 -0000 1.25 *************** *** 54,64 **** {0,0,128,128}, {0,128,0,128}, - {0,255,255,255}, /* background */ {0,0,0,0}, /* axis */ ! {0,128,128,128} /* grid */ }; ! /* Gray colors: 6 funcs + backgrnd + axis + grid + index*/ ! IndexedColorType funcolors[10]={15,11,7,13,9,5,0,15,8,0}; /* Display mode for preferences */ --- 54,64 ---- {0,0,128,128}, {0,128,0,128}, {0,0,0,0}, /* axis */ ! {0,128,128,128}, /* grid */ ! {0,255,255,255} /* background */ }; ! /* Gray colors: 6 funcs + axis + grid + backgrnd */ ! IndexedColorType funcolors[9]={15,11,7,13,9,5,15,8,0}; /* Display mode for preferences */ *************** *** 114,126 **** graphPrefs.logx = false; graphPrefs.logy = false; - graphPrefs.grid = false; graphPrefs.speed = 1; ! if (colorDisplay) { ! for (i=0; i<9; i++) graphPrefs.colors[i] = WinRGBToIndex(&graphRGBColors[i]); ! graphPrefs.colors[9] = funcolors[9]; /* index of selected function */ ! } ! if (grayDisplay) { ! for (i=0; i<10; i++) graphPrefs.colors[i] = funcolors[i]; } --- 114,123 ---- graphPrefs.logx = false; graphPrefs.logy = false; graphPrefs.speed = 1; ! for (i=0; i<9; i++){ ! graphPrefs.grEnable[i] = true; ! if (colorDisplay) graphPrefs.colors[i] = WinRGBToIndex(&graphRGBColors[i]); ! if (grayDisplay) graphPrefs.colors[i] = funcolors[i]; } |