menu widgets: reimplement volume widget
This commit is contained in:
parent
f036ce442e
commit
fba6f69d74
|
@ -974,6 +974,9 @@ static void command_event_set_volume(float gain)
|
||||||
msg_hash_to_str(MSG_AUDIO_VOLUME),
|
msg_hash_to_str(MSG_AUDIO_VOLUME),
|
||||||
new_volume);
|
new_volume);
|
||||||
|
|
||||||
|
#if defined(HAVE_MENU) && defined(HAVE_MENU_WIDGETS)
|
||||||
|
if (!video_driver_has_widgets() || !menu_widgets_volume_update_and_show())
|
||||||
|
#endif
|
||||||
runloop_msg_queue_push(msg, 1, 180, true, NULL, MESSAGE_QUEUE_ICON_DEFAULT, MESSAGE_QUEUE_CATEGORY_INFO);
|
runloop_msg_queue_push(msg, 1, 180, true, NULL, MESSAGE_QUEUE_ICON_DEFAULT, MESSAGE_QUEUE_CATEGORY_INFO);
|
||||||
|
|
||||||
RARCH_LOG("%s\n", msg);
|
RARCH_LOG("%s\n", msg);
|
||||||
|
@ -2107,9 +2110,11 @@ TODO: Add a setting for these tweaks */
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(HAVE_MENU) && defined(HAVE_MENU_WIDGETS)
|
||||||
|
if (!video_driver_has_widgets() || !menu_widgets_volume_update_and_show())
|
||||||
|
#endif
|
||||||
runloop_msg_queue_push(msg, 1, 180, true, NULL, MESSAGE_QUEUE_ICON_DEFAULT, MESSAGE_QUEUE_CATEGORY_INFO);
|
runloop_msg_queue_push(msg, 1, 180, true, NULL, MESSAGE_QUEUE_ICON_DEFAULT, MESSAGE_QUEUE_CATEGORY_INFO);
|
||||||
|
|
||||||
RARCH_LOG("%s\n", msg);
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case CMD_EVENT_SEND_DEBUG_INFO:
|
case CMD_EVENT_SEND_DEBUG_INFO:
|
||||||
|
|
Loading…
Reference in New Issue