[bsp]update rtgui_demo.c

This commit is contained in:
tangyuxin 2017-11-13 18:05:29 +08:00
parent 6127313514
commit f878c6a59f
1 changed files with 34 additions and 34 deletions

View File

@ -92,7 +92,7 @@ rt_bool_t dc_event_handler(struct rtgui_object *object, rtgui_event_t *event)
struct rtgui_dc *dc;
rtgui_rect_t rect;
rt_kprintf("\r\n RTGUI_EVENT_PAINT \r\n");
DEBUG_PRINTF("\r\n RTGUI_EVENT_PAINT \r\n");
rtgui_win_event_handler(RTGUI_OBJECT(widget), event);
rtgui_widget_get_rect(widget, &rect);
@ -100,7 +100,7 @@ rt_bool_t dc_event_handler(struct rtgui_object *object, rtgui_event_t *event)
rect.x1, rect.y1, rect.x2, rect.y2);
dc = rtgui_dc_begin_drawing(widget);
if(dc == RT_NULL)
if (dc == RT_NULL)
{
DEBUG_PRINTF("\r\n dc is null \r\n");
return RT_FALSE;
@ -125,7 +125,7 @@ int rt_gui_demo_init(void)
rt_err_t err;
device = rt_device_find("lcd");
if(device == RT_NULL)
if (device == RT_NULL)
{
rt_kprintf("Not found LCD driver\n");
return RT_ERROR;