void pgPrint4(unsigned long x,unsigned long y,unsigned long color,unsigned long color2,char *str) { while (*str!=0 && x<CMAX4_X && y<CMAX4_Y) { pgPutChar_shadow(x*32+1,y*32+1,*str,1,0,4); pgPutChar_shadow(x*32+1+1,y*32+1+1,*str,1,0,4); pgPutChar_shadow(x*32+2+1,y*32+2+1,*str,1,0,4); pgPutChar_shadow(x*32+3+1,y*32+3+1,*str,1,0,4); pgPutChar_shadow(x*32+4+1,y*32+4+1,*str,1,0,4); pgPutChar(x*32,y*32,color,0,*str,1,0,4); pgPutChar(x*32+1,y*32+1,color,0,*str,1,0,4); pgPutChar(x*32+2,y*32+2,color,0,*str,1,0,4); pgPutChar(x*32+3,y*32+3,color,0,*str,1,0,4); pgPutChar(x*32+4,y*32+4,color2,0,*str,1,0,4); str++; x++; if (x>=CMAX4_X) { x=0; y++; } } }
void pgPrintAllBG(unsigned long x,unsigned long y,unsigned long color,char *str) { while (*str!=0 && x<CMAX_X && y<CMAX_Y) { pgPutChar_shadow(x*8+1,y*8+1,*str,1,1,1); pgPutChar(x*8,y*8,color,0,*str,1,1,1); pg_drawframe^=1; pgPutChar_shadow(x*8+1,y*8+1,*str,1,1,1); pgPutChar(x*8,y*8,color,0,*str,1,1,1); pg_drawframe^=1; str++; x++; if (x>=CMAX_X) { x=0; y++; } } }
void printHex(int value) { const unsigned char* digits = (unsigned char *) "0123456789abcdef"; int i; int x = 0; for (i = 7; i >= 0; i--) { pgPutChar((x+i)*8, y*8, 0xffff, 0, digits[value&0xf], 1, 0, 1); value >>= 4; } y++; }
void pgPrint4(unsigned long x,unsigned long y,unsigned long color,const char *str) { while (*str!=0 && x<CMAX4_X && y<CMAX4_Y) { pgPutChar(x*32,y*32,color,0,*str,1,0,4); str++; x++; if (x>=CMAX4_X) { x=0; y++; } } }
void pgPrint2(unsigned long x,unsigned long y,unsigned long color,const char *str) { while (*str!=0 && x<CMAX2_X && y<CMAX2_Y) { pgPutChar(x*16,y*16,color,0,*str,1,0,2); str++; x++; if (x>=CMAX2_X) { x=0; y++; } } }
void pgPrintCenter(unsigned long y,unsigned long color,char *str){ unsigned long x=(480-strlen(str)*8)>>4; while (*str!=0 && x<CMAX_X && y<CMAX_Y) { pgPutChar_shadow(x*8+1,y*8+1,*str,1,0,1); pgPutChar(x*8,y*8,color,0,*str,1,0,1); str++; x++; if (x>=CMAX_X) { x=0; y++; } } }
void pgPrintCenterY(unsigned long y,unsigned long color,char *str){ unsigned long x=(480-strlen(str)*8)>>4; while (*str!=0 && x<CMAX_X /*&& (y/8)<CMAX_Y*/) { pgPutChar_shadow(x*8+1,y+1,*str,1,0,1); pgPutChar(x*8,y,color,0,*str,1,0,1); str++; x++; if (x>=CMAX_X) { x=0; y+=8; } } }