cauqleuir madre
Dependencies: SDFileSystem mbed TFTLCD
Revision 26:dd8e83feefb9, committed 2013-02-02
- Comitter:
- Danton
- Date:
- Sat Feb 02 02:56:59 2013 +0000
- Parent:
- 25:b81df542785e
- Child:
- 27:bae83e4c9fce
- Commit message:
- aux en colorcompute
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Sat Feb 02 02:53:39 2013 +0000 +++ b/main.cpp Sat Feb 02 02:56:59 2013 +0000 @@ -27,7 +27,8 @@ void colorCompute(unsigned char*buffer, unsigned int* colorBuffer,int offset,int sizeOfBuffer) { printf("ColorCompute\c\n"); - for(int i=offset;i<sizeOfBuffer+offset;i=i+4) + int aux= sizeOfBuffer+offset; + for(int i=offset;i<aux;i=i+4) { printf("%d",i); colorBuffer[i]=buffer[i]<<16+buffer[i+1]<<8+buffer[i+2];