1 /* these are just deps, to be removed */
6 unsigned int bytes_per_pixel; /* 3:RGB, 4:RGBA */
7 unsigned char pixel_data[128 * 96 * 3 + 1];
12 extern void PaintPicDot(unsigned char * p,unsigned char c);
13 extern unsigned char cFont[10][120];
15 void DrawNumBorPic(unsigned char *pMem, int lSelectedSlot)
21 pf=pMem+(103*3); // offset to number rect
23 for(y=0;y<20;y++) // loop the number rect pixel
27 c=cFont[lSelectedSlot][x+y*6]; // get 4 char dot infos at once (number depends on selected slot)
29 PaintPicDot(pf,(unsigned char)v);pf+=3; // paint the dots into the rect
31 PaintPicDot(pf,(unsigned char)v);pf+=3;
33 PaintPicDot(pf,(unsigned char)v);pf+=3;
35 PaintPicDot(pf,(unsigned char)v);pf+=3;
37 pf+=104*3; // next rect y line
40 pf=pMem; // ptr to first pos in 128x96 pic
41 for(x=0;x<128;x++) // loop top/bottom line
43 *(pf+(95*128*3))=0x00;*pf++=0x00;
44 *(pf+(95*128*3))=0x00;*pf++=0x00; // paint it red
45 *(pf+(95*128*3))=0xff;*pf++=0xff;
47 pf=pMem; // ptr to first pos
48 for(y=0;y<96;y++) // loop left/right line
50 *(pf+(127*3))=0x00;*pf++=0x00;
51 *(pf+(127*3))=0x00;*pf++=0x00; // paint it red
52 *(pf+(127*3))=0xff;*pf++=0xff;
53 pf+=127*3; // offset to next line