mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-26 01:30:51 +00:00
Revert "(Show FPS) Fix issue with DRM EGL context showing corrupted"
This reverts commit 10baf8456d
.
This commit is contained in:
parent
3d1b0fcdfc
commit
f46f26c42a
@ -200,7 +200,7 @@ static void gfx_ctx_update_window_title(void)
|
||||
bool fps_draw = g_extern.lifecycle_mode_state & (1ULL << MODE_FPS_DRAW);
|
||||
gfx_get_fps(buf, sizeof(buf), fps_draw ? buf_fps : NULL, sizeof(buf_fps));
|
||||
|
||||
if (fps_draw && buf_fps != NULL)
|
||||
if (fps_draw)
|
||||
msg_queue_push(g_extern.msg_queue, buf_fps, 1, 1);
|
||||
}
|
||||
|
||||
|
@ -323,11 +323,7 @@ static void gfx_ctx_set_resize(unsigned width, unsigned height)
|
||||
static void gfx_ctx_update_window_title(void)
|
||||
{
|
||||
char buf[128], buf_fps[128];
|
||||
bool fps_draw = g_extern.lifecycle_mode_state & (1ULL << MODE_FPS_DRAW);
|
||||
gfx_get_fps(buf, sizeof(buf), buf_fps, sizeof(buf_fps));
|
||||
|
||||
if (fps_draw && buf_fps != NULL)
|
||||
msg_queue_push(g_extern.msg_queue, buf_fps, 1, 1);
|
||||
}
|
||||
|
||||
static bool gfx_ctx_set_video_mode(
|
||||
|
@ -219,7 +219,7 @@ static void gfx_ctx_update_window_title(void)
|
||||
bool fps_draw = g_extern.lifecycle_mode_state & (1ULL << MODE_FPS_DRAW);
|
||||
gfx_get_fps(buf, sizeof(buf), fps_draw ? buf_fps : NULL, sizeof(buf_fps));
|
||||
|
||||
if (fps_draw && buf_fps != NULL)
|
||||
if (fps_draw)
|
||||
msg_queue_push(g_extern.msg_queue, buf_fps, 1, 1);
|
||||
}
|
||||
|
||||
|
@ -86,7 +86,7 @@ static void gfx_ctx_update_window_title(void)
|
||||
bool fps_draw = g_extern.lifecycle_mode_state & (1ULL << MODE_FPS_DRAW);
|
||||
gfx_get_fps(buf, sizeof(buf), fps_draw ? buf_fps : NULL, sizeof(buf_fps));
|
||||
|
||||
if (fps_draw && buf_fps != NULL)
|
||||
if (fps_draw)
|
||||
msg_queue_push(g_extern.msg_queue, buf_fps, 1, 1);
|
||||
}
|
||||
|
||||
|
@ -170,7 +170,7 @@ static void gfx_ctx_update_window_title(void)
|
||||
if (gfx_get_fps(buf, sizeof(buf), fps_draw ? buf_fps : NULL, sizeof(buf_fps)))
|
||||
XStoreName(g_dpy, g_win, buf);
|
||||
|
||||
if (fps_draw && buf_fps != NULL)
|
||||
if (fps_draw)
|
||||
msg_queue_push(g_extern.msg_queue, buf_fps, 1, 1);
|
||||
}
|
||||
|
||||
|
@ -192,7 +192,7 @@ static void gfx_ctx_update_window_title(void)
|
||||
bool fps_draw = g_extern.lifecycle_mode_state & (1ULL << MODE_FPS_DRAW);
|
||||
gfx_get_fps(buf, sizeof(buf), fps_draw ? buf_fps : NULL, sizeof(buf_fps));
|
||||
|
||||
if (fps_draw && buf_fps != NULL)
|
||||
if (fps_draw)
|
||||
msg_queue_push(g_extern.msg_queue, buf_fps, 1, 1);
|
||||
}
|
||||
|
||||
|
@ -113,7 +113,7 @@ static void gfx_ctx_update_window_title(void)
|
||||
bool fps_draw = g_extern.lifecycle_mode_state & (1ULL << MODE_FPS_DRAW);
|
||||
gfx_get_fps(buf, sizeof(buf), fps_draw ? buf_fps : NULL, sizeof(buf_fps));
|
||||
|
||||
if (fps_draw && buf_fps != NULL)
|
||||
if (fps_draw)
|
||||
msg_queue_push(g_extern.msg_queue, buf_fps, 1, 1);
|
||||
}
|
||||
|
||||
|
@ -282,7 +282,7 @@ static void gfx_ctx_update_window_title(void)
|
||||
if (gfx_get_fps(buf, sizeof(buf), fps_draw ? buf_fps : NULL, sizeof(buf_fps)))
|
||||
SetWindowText(g_hwnd, buf);
|
||||
|
||||
if (fps_draw && buf_fps != NULL)
|
||||
if (fps_draw)
|
||||
msg_queue_push(g_extern.msg_queue, buf_fps, 1, 1);
|
||||
}
|
||||
|
||||
|
@ -87,7 +87,7 @@ static void gfx_ctx_xdk_update_window_title(void)
|
||||
bool fps_draw = g_extern.lifecycle_mode_state & (1ULL << MODE_FPS_DRAW);
|
||||
gfx_get_fps(buf, sizeof(buf), fps_draw ? buf_fps : NULL, sizeof(buf_fps));
|
||||
|
||||
if (fps_draw && buf_fps != NULL)
|
||||
if (fps_draw)
|
||||
{
|
||||
char mem[128];
|
||||
MEMORYSTATUS stat;
|
||||
|
@ -184,7 +184,7 @@ static void gfx_ctx_update_window_title(void)
|
||||
if (gfx_get_fps(buf, sizeof(buf), fps_draw ? buf_fps : NULL, sizeof(buf_fps)))
|
||||
XStoreName(g_dpy, g_win, buf);
|
||||
|
||||
if (fps_draw && buf_fps != NULL)
|
||||
if (fps_draw)
|
||||
msg_queue_push(g_extern.msg_queue, buf_fps, 1, 1);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user