diff --git a/gfx/context/ps3_ctx.c b/gfx/context/ps3_ctx.c index 468e871cea..70568b7ed6 100644 --- a/gfx/context/ps3_ctx.c +++ b/gfx/context/ps3_ctx.c @@ -24,6 +24,8 @@ #endif #endif +#include "../gfx_common.h" + #ifndef __PSL1GHT__ #include #endif @@ -186,8 +188,23 @@ static void gfx_ctx_set_resize(unsigned width, unsigned height) { } static void gfx_ctx_update_window_title(void) { + gl_t *gl = (gl_t*)driver.video_data; char buf[128]; + gfx_get_fps(buf, sizeof(buf), false); + + if (g_extern.lifecycle_mode_state & (1ULL << MODE_FPS_DRAW) && + gl->font_ctx) + { +#ifdef HAVE_LIBDBGFONT + font_params_t params = {0}; + params.x = g_settings.video.msg_pos_x; + params.y = 0.56f; + params.scale = 1.04f; + params.color = WHITE; + gl->font_ctx->render_msg(gl, buf, ¶ms); +#endif + } } static void gfx_ctx_get_video_size(unsigned *width, unsigned *height) diff --git a/gfx/gl.c b/gfx/gl.c index c694168c6c..90a7e8e1cb 100644 --- a/gfx/gl.c +++ b/gfx/gl.c @@ -50,10 +50,6 @@ #include "shader_common.h" -#ifdef __CELLOS_LV2__ -#define FPS_COUNTER -#endif - #ifdef ANDROID #include "../frontend/frontend_android.h" #endif @@ -1493,25 +1489,6 @@ static bool gl_frame(void *data, const void *frame, unsigned width, unsigned hei gl_draw_texture(gl); #endif -#ifdef FPS_COUNTER - if (lifecycle_mode_state & (1ULL << MODE_FPS_DRAW)) - { - char fps_txt[128]; - font_params_t params = {0}; - - gfx_get_fps(fps_txt, sizeof(fps_txt), true); - - if (gl->font_ctx) - { - params.x = g_settings.video.msg_pos_x; - params.y = 0.56f; - params.scale = 1.04f; - params.color = WHITE; - gl->font_ctx->render_msg(gl, fps_txt, ¶ms); - } - } -#endif - if (msg && gl->font_ctx) gl->font_ctx->render_msg(gl, msg, NULL);