4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-28 10:40:26 +08:00
goprife@gmail.com c1f7aa1ca7 add realtouch ui code to bsp/simulator
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2442 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-11-23 15:18:02 +00:00

32 lines
575 B
C++

#include <rtthread.h>
#include "appmgr.h"
#include "statusbar.h"
int rt_application_init()
{
rt_device_t device;
struct rt_device_rect_info info;
device = rt_device_find("sdl");
if (device != RT_NULL)
{
info.width = 800;
info.height = 480;
/* set graphic resolution */
rt_device_control(device, RTGRAPHIC_CTRL_SET_MODE, &info);
}
/* re-set graphic device */
rtgui_graphic_set_device(device);
/* re-init mouse */
rtgui_mouse_init();
app_mgr_init();
rt_thread_delay(10);
app_init();
picture_app_create();
return 0;
}