Ejemplo n.º 1
0
void printworld()
{
	int x,y;
	for(y=0;y<1024;y++)
	{
		for(x=0;x<1024;x++)
		{
			palette[y*1024+x]=0x44444444;
		}
	}
/*
	printunicode(0,0,0x548c);
	printunicode(500,0,0x548c);
	printunicode(1000,0,0x548c);
	printunicode(0,250,0x548c);
	printunicode(0,500,0x548c);
*/
	for(y=0;y<1024;y+=32)
	{
		for(x=0;x<1024;x+=32)
		{
			printunicode(x,y,which + y + (x/32) );
		}
	}

	//
	printunicodebig(0,0,which);

}
Ejemplo n.º 2
0
void main()
{
	int i;
	unsigned char* p;

	//
	windowcreate();
	windowstart(final, "rgba8888", 1024, 1024);

	//
	p=whereisunicodetable();
	if(p==0)
	{
		printf("unicode table not found\n");
		goto bye;
	}

	printunicode(p+(0x6709*0x20));		//有
	printunicode(p+(0x6ca1*0x20));		//没

	//forever
	u64 type=0;
	u64 key=0;
	while(1)
	{
		//1.先在内存里画画,然后一次性写到窗口内
		windowwrite();

		//2.等事件,是退出消息就退出
		eventread(&type,&key);
		if( type==0 )break;
		if( (type==0x64626b)&&(key==0x1b))break;
	}

bye:
	//after
	windowstop();
	windowdelete();
}