mirror of
https://github.com/holub/mame
synced 2025-07-05 18:08:04 +03:00
draw FPS counter even in menus (nw)
will revert this when MG finish his work
This commit is contained in:
parent
05214ecda5
commit
1dc9266b93
@ -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();
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user