aboutsummaryrefslogtreecommitdiff
path: root/frontend/nopic.h
diff options
context:
space:
mode:
authornotaz2010-11-18 15:08:15 +0200
committernotaz2010-11-18 15:08:15 +0200
commite906c010e1bea71ed4df425be97ce45dc777818c (patch)
tree08776f015004a3f4ae2222a51ff2993e23a1b129 /frontend/nopic.h
parentf2bd6ff85d23f3e421b2f30f86080d71d4e95046 (diff)
downloadpcsx_rearmed-e906c010e1bea71ed4df425be97ce45dc777818c.tar.gz
pcsx_rearmed-e906c010e1bea71ed4df425be97ce45dc777818c.tar.bz2
pcsx_rearmed-e906c010e1bea71ed4df425be97ce45dc777818c.zip
build plugins in
Diffstat (limited to 'frontend/nopic.h')
-rw-r--r--frontend/nopic.h57
1 files changed, 57 insertions, 0 deletions
diff --git a/frontend/nopic.h b/frontend/nopic.h
new file mode 100644
index 0000000..d664f80
--- /dev/null
+++ b/frontend/nopic.h
@@ -0,0 +1,57 @@
+/* these are just deps, to be removed */
+
+static const struct {
+ unsigned int width;
+ unsigned int height;
+ unsigned int bytes_per_pixel; /* 3:RGB, 4:RGBA */
+ unsigned char pixel_data[128 * 96 * 3 + 1];
+} NoPic_Image = {
+ 128, 96, 3, ""
+};
+
+extern void PaintPicDot(unsigned char * p,unsigned char c);
+extern unsigned char cFont[10][120];
+
+void DrawNumBorPic(unsigned char *pMem, int lSelectedSlot)
+{
+ unsigned char *pf;
+ int x,y;
+ int c,v;
+
+ pf=pMem+(103*3); // offset to number rect
+
+ for(y=0;y<20;y++) // loop the number rect pixel
+ {
+ for(x=0;x<6;x++)
+ {
+ c=cFont[lSelectedSlot][x+y*6]; // get 4 char dot infos at once (number depends on selected slot)
+ v=(c&0xc0)>>6;
+ PaintPicDot(pf,(unsigned char)v);pf+=3; // paint the dots into the rect
+ v=(c&0x30)>>4;
+ PaintPicDot(pf,(unsigned char)v);pf+=3;
+ v=(c&0x0c)>>2;
+ PaintPicDot(pf,(unsigned char)v);pf+=3;
+ v=c&0x03;
+ PaintPicDot(pf,(unsigned char)v);pf+=3;
+ }
+ pf+=104*3; // next rect y line
+ }
+
+ pf=pMem; // ptr to first pos in 128x96 pic
+ for(x=0;x<128;x++) // loop top/bottom line
+ {
+ *(pf+(95*128*3))=0x00;*pf++=0x00;
+ *(pf+(95*128*3))=0x00;*pf++=0x00; // paint it red
+ *(pf+(95*128*3))=0xff;*pf++=0xff;
+ }
+ pf=pMem; // ptr to first pos
+ for(y=0;y<96;y++) // loop left/right line
+ {
+ *(pf+(127*3))=0x00;*pf++=0x00;
+ *(pf+(127*3))=0x00;*pf++=0x00; // paint it red
+ *(pf+(127*3))=0xff;*pf++=0xff;
+ pf+=127*3; // offset to next line
+ }
+}
+
+