Update .gitlab-ci.yml
[pcsx_rearmed.git] / frontend / nopic.h
1 #ifndef __NOPIC_H__
2 #define __NOPIC_H__
3
4 /* these are just deps, to be removed */
5
6 static const struct {
7   unsigned int   width;
8   unsigned int   height;
9   unsigned int   bytes_per_pixel; /* 3:RGB, 4:RGBA */ 
10   unsigned char  pixel_data[128 * 96 * 3 + 1];
11 } NoPic_Image = {
12   128, 96, 3, ""
13 };
14
15 extern void PaintPicDot(unsigned char * p,unsigned char c);
16 extern unsigned char cFont[10][120];
17
18 void DrawNumBorPic(unsigned char *pMem, int lSelectedSlot)
19 {
20  unsigned char *pf;
21  int x,y;
22  int c,v;
23
24  pf=pMem+(103*3);                                      // offset to number rect
25
26  for(y=0;y<20;y++)                                     // loop the number rect pixel
27   {
28    for(x=0;x<6;x++)
29     {
30      c=cFont[lSelectedSlot][x+y*6];                    // get 4 char dot infos at once (number depends on selected slot)
31      v=(c&0xc0)>>6;
32      PaintPicDot(pf,(unsigned char)v);pf+=3;                // paint the dots into the rect
33      v=(c&0x30)>>4;
34      PaintPicDot(pf,(unsigned char)v);pf+=3;
35      v=(c&0x0c)>>2;
36      PaintPicDot(pf,(unsigned char)v);pf+=3;
37      v=c&0x03;
38      PaintPicDot(pf,(unsigned char)v);pf+=3;
39     }
40    pf+=104*3;                                          // next rect y line
41   }
42
43  pf=pMem;                                              // ptr to first pos in 128x96 pic
44  for(x=0;x<128;x++)                                    // loop top/bottom line
45   {
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;
49   }
50  pf=pMem;                                              // ptr to first pos
51  for(y=0;y<96;y++)                                     // loop left/right line
52   {
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
57   }
58 }
59
60 #endif /* __NOPIC_H__ */