Previous 199869 Revisions Next

r29565 Saturday 12th April, 2014 at 14:40:00 UTC by Nathan Woods
Fixed issues with menubar's bad interactions with pausing
[/branches/new_menus/src/emu/ui]menubar.c

branches/new_menus/src/emu/ui/menubar.c
r29564r29565
6464   m_mouse_x = -1;
6565   m_mouse_y = -1;
6666   m_mouse_button = false;
67   m_last_mouse_move = 0;
6768}
6869
6970
r29564r29565
726727   menubar_visibility_t result;
727728
728729   // is the mouse in the menu bar?
729   bool in_menu_bar = m_mouse_y <= machine().ui().get_line_height();
730   bool in_menu_bar = (m_mouse_y >= 0) && (m_mouse_y <= machine().ui().get_line_height());
730731
731732   // did we recently move the mouse?
732   bool recently_moved = (osd_ticks() - m_last_mouse_move) * 5 / osd_ticks_per_second() < 1;
733   bool recently_moved = (m_last_mouse_move != 0)
734      && ((osd_ticks() - m_last_mouse_move) * 5 / osd_ticks_per_second() < 1);
733735
734736   // make the choice
735737   if ((m_selected_item != NULL) || (m_active_item != NULL))

Previous 199869 Revisions Next


© 1997-2024 The MAME Team