mirror of
https://gitee.com/houstudio/Cdroid.git
synced 2024-11-30 03:08:12 +08:00
modify numberpicker,fix an uninit val
This commit is contained in:
parent
b1f117693f
commit
7a017c2eb8
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user