Ignore:
Timestamp:
May 13, 2011, 1:36:00 PM (12 years ago)
Author:
Sam Hocevar
Message:

imlib: clean up EventHandler? and JCMouse.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/menu.cpp

    r644 r645  
    193193  {
    194194    wm->flush_screen();
    195     if (wm->event_waiting())
     195    if (wm->IsPending())
    196196    {
    197197      wm->get_event(ev);
     
    292292            wm->get_event(ev);
    293293        }
    294         while(ev.type == EV_MOUSE_MOVE && wm->event_waiting());
     294        while(ev.type == EV_MOUSE_MOVE && wm->IsPending());
    295295
    296296        wm->flush_screen();
     
    676676        time_marker new_time;
    677677
    678         if (wm->event_waiting())
     678        if (wm->IsPending())
    679679        {
    680680            do
    681681            {
    682682                wm->get_event(ev);
    683             } while (ev.type==EV_MOUSE_MOVE && wm->event_waiting());
     683            } while (ev.type==EV_MOUSE_MOVE && wm->IsPending());
    684684            inm->handle_event(ev,NULL);
    685685            if (ev.type==EV_KEY && ev.key==JK_ESC)
Note: See TracChangeset for help on using the changeset viewer.