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

34 lines
772 B
C

#include <rtthread.h>
#include <rtgui/rtgui_server.h>
#include <rtgui/rtgui_system.h>
#include <rtgui/rtgui_app.h>
#include "appmgr.h"
#include "statusbar.h"
void realtouch_ui_init(void)
{
rt_device_t device;
struct rt_device_rect_info info;
#ifndef _WIN32
device = rt_device_find("lcd");
{
info.width = 800;
info.height = 480;
/* set graphic resolution */
rt_device_control(device, RTGRAPHIC_CTRL_SET_MODE, &info);
}
if (device != RT_NULL)
/* re-set graphic device */
rtgui_graphic_set_device(device);
#endif
app_mgr_init();
rt_thread_delay(10);
#ifndef _WIN32
calibration_init();
#endif
}