modify numberpicker,fix an uninit val

This commit is contained in:
侯歌 2023-02-28 14:45:30 +00:00
parent b1f117693f
commit 7a017c2eb8

View File

@ -6,7 +6,16 @@
int main(int argc,const char*argv[]){
App app(argc,argv);
Window*w=new ControlCenter(0,0,1280,720);
unsigned int width,height;
GFXGetDisplaySize(0,&width,&height);
printf("screensize=%dx%d\r\n",width,height);
if((GFXGetRotation(0)==ROTATE_90)||(GFXGetRotation(0)==ROTATE_270)){
int tmp = width;
width = height;
height=tmp;
}
printf("size=%dx%d rotate=%d/%d/%d\r\n",width,height,GFXGetRotation(0),ROTATE_90,ROTATE_270);
Window*w=new ControlCenter(0,0,width,height);
return app.exec();
}