#include <base.h>
char text [300];
int init()
{
setscrsize(480,800);
cls(0,0,0);
sprintf(text,"屏幕宽度:%d",SCWR);
printf("屏幕缓存区宽高 %d %d",SCWR,SCWH);
dtext(text,30,30,255,255,255,0,1);
ref(0,0,SCRW,SCRH);
return 0;
}
int event(int type, int p1, int p2)
{
if(KY_UP == type)
{
switch(p1)
{
case _SRIGHT:
exit();
break;
case _1:
break;
}
}
return 0;
}
int pause()
{
return 0;
}
int resume()
{
return 0;
}
char text [300];
int init()
{
setscrsize(480,800);
cls(0,0,0);
sprintf(text,"屏幕宽度:%d",SCWR);
printf("屏幕缓存区宽高 %d %d",SCWR,SCWH);
dtext(text,30,30,255,255,255,0,1);
ref(0,0,SCRW,SCRH);
return 0;
}
int event(int type, int p1, int p2)
{
if(KY_UP == type)
{
switch(p1)
{
case _SRIGHT:
exit();
break;
case _1:
break;
}
}
return 0;
}
int pause()
{
return 0;
}
int resume()
{
return 0;
}