mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-23 12:15:32 +08:00
add jpg image.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@303 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
+13
-6
@@ -303,9 +303,12 @@ void rtgui_server_handle_mouse_btn(struct rtgui_event_mouse* event)
|
||||
event->wid = RT_NULL;
|
||||
|
||||
/* send mouse event to thread */
|
||||
rtgui_thread_send(rtgui_panel_get_active_thread(panel),
|
||||
(struct rtgui_event*)event,
|
||||
sizeof(struct rtgui_event_mouse));
|
||||
if (rtgui_panel_get_active_thread(panel) != RT_NULL)
|
||||
{
|
||||
rtgui_thread_send(rtgui_panel_get_active_thread(panel),
|
||||
(struct rtgui_event*)event,
|
||||
sizeof(struct rtgui_event_mouse));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -381,10 +384,13 @@ void rtgui_server_handle_mouse_motion(struct rtgui_event_mouse* event)
|
||||
if (last_monitor_panel != RT_NULL)
|
||||
{
|
||||
rt_thread_t tid = rtgui_panel_get_active_thread(last_monitor_panel);
|
||||
event->wid = RT_NULL;
|
||||
|
||||
/* send mouse motion event */
|
||||
rtgui_thread_send(tid, &(event->parent), sizeof(struct rtgui_event_mouse));
|
||||
if (tid != RT_NULL)
|
||||
{
|
||||
event->wid = RT_NULL;
|
||||
rtgui_thread_send(tid, &(event->parent), sizeof(struct rtgui_event_mouse));
|
||||
}
|
||||
}
|
||||
else if (last_monitor_topwin != RT_NULL)
|
||||
{
|
||||
@@ -403,7 +409,8 @@ void rtgui_server_handle_mouse_motion(struct rtgui_event_mouse* event)
|
||||
event->wid = RT_NULL;
|
||||
|
||||
/* send mouse motion event */
|
||||
rtgui_thread_send(tid, &(event->parent), sizeof(struct rtgui_event_mouse));
|
||||
if (tid != RT_NULL)
|
||||
rtgui_thread_send(tid, &(event->parent), sizeof(struct rtgui_event_mouse));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user