mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 06:44:27 +00:00
menu widgets: reimplement FPS counter
This commit is contained in:
parent
e6efc02457
commit
7a3caf82d0
@ -47,6 +47,9 @@
|
|||||||
#ifdef HAVE_MENU
|
#ifdef HAVE_MENU
|
||||||
#include "../menu/menu_driver.h"
|
#include "../menu/menu_driver.h"
|
||||||
#include "../menu/menu_setting.h"
|
#include "../menu/menu_setting.h"
|
||||||
|
#ifdef HAVE_MENU_WIDGETS
|
||||||
|
#include "../menu/widgets/menu_widgets.h"
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "video_thread_wrapper.h"
|
#include "video_thread_wrapper.h"
|
||||||
@ -2596,7 +2599,10 @@ void video_driver_frame(const void *data, unsigned width,
|
|||||||
|
|
||||||
/* Display the FPS, with a higher priority. */
|
/* Display the FPS, with a higher priority. */
|
||||||
if (video_info.fps_show || video_info.framecount_show)
|
if (video_info.fps_show || video_info.framecount_show)
|
||||||
runloop_msg_queue_push(video_info.fps_text, 2, 1, true, NULL, MESSAGE_QUEUE_ICON_DEFAULT, MESSAGE_QUEUE_CATEGORY_INFO);
|
#if defined(HAVE_MENU) && defined(HAVE_MENU_WIDGETS)
|
||||||
|
if (!video_driver_has_widgets() || !menu_widgets_set_fps_text(video_info.fps_text))
|
||||||
|
#endif
|
||||||
|
runloop_msg_queue_push(video_info.fps_text, 2, 1, true, NULL, MESSAGE_QUEUE_ICON_DEFAULT, MESSAGE_QUEUE_CATEGORY_INFO);
|
||||||
|
|
||||||
/* trigger set resolution*/
|
/* trigger set resolution*/
|
||||||
if (video_info.crt_switch_resolution)
|
if (video_info.crt_switch_resolution)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user