void PlotPixel(int x,int y,unsigned char color) { ScreenPtr[(((y<<6)+(y<<8))+x]=color; //or ScreenPtr[y*320+x]=color; }