4 /* these are just deps, to be removed */
9 unsigned int bytes_per_pixel; /* 3:RGB, 4:RGBA */
10 unsigned char pixel_data[128 * 96 * 3 + 1];
15 extern void PaintPicDot(unsigned char * p,unsigned char c);
16 extern unsigned char cFont[10][120];
18 void DrawNumBorPic(unsigned char *pMem, int lSelectedSlot)
24 pf=pMem+(103*3); // offset to number rect
26 for(y=0;y<20;y++) // loop the number rect pixel
30 c=cFont[lSelectedSlot][x+y*6]; // get 4 char dot infos at once (number depends on selected slot)
32 PaintPicDot(pf,(unsigned char)v);pf+=3; // paint the dots into the rect
34 PaintPicDot(pf,(unsigned char)v);pf+=3;
36 PaintPicDot(pf,(unsigned char)v);pf+=3;
38 PaintPicDot(pf,(unsigned char)v);pf+=3;
40 pf+=104*3; // next rect y line
43 pf=pMem; // ptr to first pos in 128x96 pic
44 for(x=0;x<128;x++) // loop top/bottom line
46 *(pf+(95*128*3))=0x00;*pf++=0x00;
47 *(pf+(95*128*3))=0x00;*pf++=0x00; // paint it red
48 *(pf+(95*128*3))=0xff;*pf++=0xff;
50 pf=pMem; // ptr to first pos
51 for(y=0;y<96;y++) // loop left/right line
53 *(pf+(127*3))=0x00;*pf++=0x00;
54 *(pf+(127*3))=0x00;*pf++=0x00; // paint it red
55 *(pf+(127*3))=0xff;*pf++=0xff;
56 pf+=127*3; // offset to next line
60 #endif /* __NOPIC_H__ */