equal
deleted
inserted
replaced
859 |
859 |
860 /* Since our default is 140, here we can populate that from pre-calculated |
860 /* Since our default is 140, here we can populate that from pre-calculated |
861 * data, it needs only 512 bytes - plus a few more of overhead - and saves |
861 * data, it needs only 512 bytes - plus a few more of overhead - and saves |
862 * about that many intrinsic function calls plus other FP calculations. |
862 * about that many intrinsic function calls plus other FP calculations. |
863 */ |
863 */ |
864 void initLCDGammaTables() { |
864 void initLCDGammaTables(void) { |
865 memset(lcdGammaLUT, 0, LCDLUTCOUNT * sizeof(UInt8*)); |
865 memset(lcdGammaLUT, 0, LCDLUTCOUNT * sizeof(UInt8*)); |
866 memset(lcdInvGammaLUT, 0, LCDLUTCOUNT * sizeof(UInt8*)); |
866 memset(lcdInvGammaLUT, 0, LCDLUTCOUNT * sizeof(UInt8*)); |
867 /* printDefaultTables(140); */ |
867 /* printDefaultTables(140); */ |
868 lcdGammaLUT[40] = defaultGammaLUT; |
868 lcdGammaLUT[40] = defaultGammaLUT; |
869 lcdInvGammaLUT[40] = defaultInvGammaLUT; |
869 lcdInvGammaLUT[40] = defaultInvGammaLUT; |