draw FPS counter even in menus (nw)

will revert this when MG finish his work
This commit is contained in:
Miodrag Milanovic 2016-02-15 16:35:15 +01:00
parent 05214ecda5
commit 1dc9266b93
2 changed files with 8 additions and 1 deletions

View File

@ -460,6 +460,13 @@ void ui_menu::set_selection(void *selected_itemref)
void ui_menu::draw(bool customonly, bool noimage, bool noinput)
{
// first draw the FPS counter
if (machine().ui().show_fps_counter())
{
machine().ui().draw_text_full(container, machine().video().speed_text().c_str(), 0.0f, 0.0f, 1.0f,
JUSTIFY_RIGHT, WRAP_WORD, DRAW_OPAQUE, ARGB_WHITE, ARGB_BLACK, nullptr, nullptr);
}
float line_height = machine().ui().get_line_height();
float lr_arrow_width = 0.4f * line_height * machine().render().ui_aspect();
float ud_arrow_width = line_height * machine().render().ui_aspect();

View File

@ -684,7 +684,7 @@ inline int video_manager::effective_frameskip() const
inline bool video_manager::effective_throttle() const
{
// if we're paused, or if the UI is active, we always throttle
if (machine().paused() || machine().ui().is_menu_active())
if (machine().paused()) //|| machine().ui().is_menu_active())
return true;
// if we're fast forwarding, we don't throttle