From c0a70fcf59a465b333e93b4bd039f3edca7eb438 Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Thu, 18 Aug 2022 21:09:35 +0300 Subject: [PATCH] Video recording active indicator --- od-win32/win32gui.cpp | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/od-win32/win32gui.cpp b/od-win32/win32gui.cpp index 13e41e62..680a05e5 100644 --- a/od-win32/win32gui.cpp +++ b/od-win32/win32gui.cpp @@ -22973,23 +22973,24 @@ void gui_led (int led, int on, int brightness) ptr = drive_text + pos * LED_STRING_WIDTH; if (fps > 9999.9) fps = 9999.9; + const TCHAR *rec = avioutput_requested ? _T("R") : _T(""); if (gui_data.fps_color == 2) { - _tcscpy(ptr, _T("No Sync")); + _stprintf(ptr, _T("No Sync%s"), rec); } else if (gui_data.fps_color == 3) { - _tcscpy(ptr, _T("FPS: ----")); + _stprintf(ptr, _T("FPS: ---%s"), rec); } else if (fps < 1000) { if (ad->picasso_on) - _stprintf (ptr, _T("%.1f [%.1f]"), p96vblank, fps); + _stprintf (ptr, _T("%.1f%s[%.1f]"), p96vblank, rec, fps); else - _stprintf (ptr, _T("FPS: %.1f"), fps); + _stprintf (ptr, _T("FPS: %.1f%s"), fps, rec); } else { if (ad->picasso_on) - _stprintf(ptr, _T("%.0f [%.0f]"), p96vblank, fps); + _stprintf(ptr, _T("%.0f%s[%.0f]"), p96vblank, rec, fps); else - _stprintf(ptr, _T("FPS: %.0f"), fps); + _stprintf(ptr, _T("FPS: %.0f%s"), fps, rec); } if (gui_data.cpu_halted > 0) { - _stprintf (ptr, _T("HALT%d"), gui_data.cpu_halted); + _stprintf (ptr, _T("HALT%d%s"), gui_data.cpu_halted, rec); center = 1; } if (pause_emulation) { -- 2.47.3