From 9b52136be4237e9e03162c40d745d36552bea9f7 Mon Sep 17 00:00:00 2001 From: Neil Roberts Date: Wed, 26 Mar 2008 10:58:12 +0000 Subject: [PATCH] 2008-03-26 Neil Roberts * 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. --- ChangeLog | 7 +++++++ clutter/win32/clutter-event-win32.c | 5 ++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 430fad76c..876f398f1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2008-03-26 Neil Roberts + + * 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 Added a native Win32 WGL backend. diff --git a/clutter/win32/clutter-event-win32.c b/clutter/win32/clutter-event-win32.c index 0f7f496fc..e85b0eb7a 100644 --- a/clutter/win32/clutter-event-win32.c +++ b/clutter/win32/clutter-event-win32.c @@ -177,7 +177,7 @@ check_msg_pending () { MSG msg; - return PeekMessage (&msg, NULL, 0, 0, PM_NOREMOVE) ? TRUE : FALSE; + return PeekMessageW (&msg, NULL, 0, 0, PM_NOREMOVE) ? TRUE : FALSE; } static ClutterModifierType @@ -232,13 +232,12 @@ static gboolean clutter_event_check (GSource *source) { ClutterEventSource *event_source = (ClutterEventSource *) source; - ClutterBackend *backend = event_source->backend; gboolean retval; clutter_threads_enter (); 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 retval = FALSE;