for (y=0;y<224;y++) PicoLine(y);\r
}\r
\r
+int PicoGetStat(pstat_t which)\r
+{\r
+ switch (which)\r
+ {\r
+ case PS_PAL: return Pico.m.pal;\r
+ case PS_40_CELL: return Pico.video.reg[12]&1;\r
+ case PS_240_LINES: return Pico.m.pal && (Pico.video.reg[1]&8);\r
+ }\r
+ return 0;\r
+}\r
+\r
// callback to output message from emu\r
void (*PicoMessage)(const char *msg)=NULL;\r
\r
extern int PicoPad[2]; // Joypads, format is MXYZ SACB RLDU\r
extern void (*PicoWriteSound)(int len); // called once per frame at the best time to send sound buffer (PsndOut) to hardware\r
extern void (*PicoMessage)(const char *msg); // callback to output text message from emu\r
+typedef enum { PS_PAL, PS_40_CELL, PS_240_LINES } pstat_t;\r
+int PicoGetStat(pstat_t which);\r
\r
// cd/Pico.c\r
extern void (*PicoMCDopenTray)(void);\r
\r
// Draw2.c\r
// stuff below is optional\r
-extern unsigned char *PicoDraw2FB; // buffer for fasr renderer in format (8+320)x(8+224+8) (eights for borders)\r
+extern unsigned char *PicoDraw2FB; // buffer for fast renderer in format (8+320)x(8+224+8) (eights for borders)\r
extern unsigned short *PicoCramHigh; // pointer to CRAM buff (0x40 shorts), converted to native device color (works only with 16bit for now)\r
extern void (*PicoPrepareCram)(); // prepares PicoCramHigh for renderer to use\r
\r