]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Video recording active indicator
authorToni Wilen <twilen@winuae.net>
Thu, 18 Aug 2022 18:09:35 +0000 (21:09 +0300)
committerToni Wilen <twilen@winuae.net>
Thu, 18 Aug 2022 18:09:35 +0000 (21:09 +0300)
od-win32/win32gui.cpp

index 13e41e62cf2c06a144f2824241d989815a6c8368..680a05e592ccf21cea703c560b84ee47d4fd4c00 100644 (file)
@@ -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) {