#include "libretro.h" #include "retroscreen.h" #include "libretro-core.h" #include "vkbd_def.h" #include "graph.h" extern int NPAGE; extern int KCOL; extern int BKGCOLOR; extern int SHIFTON; extern int CTRLON; void virtual_kdb(char *buffer,int vx,int vy) { int x, y, page; unsigned coul; #if defined PITCH && PITCH == 4 unsigned *pix=(unsigned*)buffer; #else unsigned short *pix=(unsigned short *)buffer; #endif page = (NPAGE == -1) ? 0 : NLIGN*NPLGN; coul = RGB565(28, 28, 31); BKGCOLOR = (KCOL>0?0xFF808080:0); for(x=0;x