1) 0x04000000 is PgVramAddr,then,what is 0x40000000?
so I could not understand the code:
Code: Select all
char *pgGetVramAddr(unsigned long x,unsigned long y)
{
return pg_vramtop+(pg_drawframe?FRAMESIZE:0)+x*PIXELSIZE*2+y*LINESIZE*2+0x40000000;
}
Code: Select all
#define PIXELSIZE 1
#define LINESIZE 512
#define FRAMESIZE 0x44000
THANX A LOTS!