2008-03-26 Neil Roberts <neil@o-hand.com>

* clutter/win32/clutter-event-win32.c (clutter_event_check):
	Removed the pointless parameter in the call to check_msg_pending.
	(check_msg_pending): Fixed to use PeekMessageW instead of
	PeekMessage.
This commit is contained in:
Neil Roberts 2008-03-26 10:58:12 +00:00
parent 051ed6b43b
commit 9b52136be4
2 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,10 @@
2008-03-26 Neil Roberts <neil@o-hand.com>
* clutter/win32/clutter-event-win32.c (clutter_event_check):
Removed the pointless parameter in the call to check_msg_pending.
(check_msg_pending): Fixed to use PeekMessageW instead of
PeekMessage.
2008-03-25 Neil Roberts <neil@o-hand.com> 2008-03-25 Neil Roberts <neil@o-hand.com>
Added a native Win32 WGL backend. Added a native Win32 WGL backend.

View File

@ -177,7 +177,7 @@ check_msg_pending ()
{ {
MSG msg; MSG msg;
return PeekMessage (&msg, NULL, 0, 0, PM_NOREMOVE) ? TRUE : FALSE; return PeekMessageW (&msg, NULL, 0, 0, PM_NOREMOVE) ? TRUE : FALSE;
} }
static ClutterModifierType static ClutterModifierType
@ -232,13 +232,12 @@ static gboolean
clutter_event_check (GSource *source) clutter_event_check (GSource *source)
{ {
ClutterEventSource *event_source = (ClutterEventSource *) source; ClutterEventSource *event_source = (ClutterEventSource *) source;
ClutterBackend *backend = event_source->backend;
gboolean retval; gboolean retval;
clutter_threads_enter (); clutter_threads_enter ();
if ((event_source->event_poll_fd.revents & G_IO_IN)) if ((event_source->event_poll_fd.revents & G_IO_IN))
retval = (clutter_events_pending () || check_msg_pending (backend)); retval = (clutter_events_pending () || check_msg_pending ());
else else
retval = FALSE; retval = FALSE;