Cdroid/apps/uidemo2/main.cc

22 lines
611 B
C++
Raw Normal View History

2022-07-06 15:58:40 +08:00
#include <cdroid.h>
#include <string>
#include <cdlog.h>
#include <iostream>
#include <controlcenter.h>
int main(int argc,const char*argv[]){
App app(argc,argv);
2023-02-28 22:45:30 +08:00
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);
2022-07-06 15:58:40 +08:00
return app.exec();
}