mirror of https://github.com/PCSX2/pcsx2.git
PCSX2-WX: Display the video mode on titlebar
I found it might be useful for looking into issues at certain cases where users provide a screenshot covering the titlebar, so we can easily identify which video mode is being used. Especially useful for looking into PCRTC issues.
This commit is contained in:
parent
e0ec8b3be1
commit
36a1c7a265
|
@ -249,7 +249,7 @@ static void vSyncInfoCalc(vSyncTimingInfo* info, Fixed100 framesPerSecond, u32 s
|
|||
// is thus not worth the effort at this time.
|
||||
}
|
||||
|
||||
static const char* ReportVideoMode()
|
||||
const char* ReportVideoMode()
|
||||
{
|
||||
switch (gsVideoMode)
|
||||
{
|
||||
|
|
|
@ -122,7 +122,7 @@ struct SyncCounter
|
|||
#define MODE_HRENDER 0x0 //Set for ~5/6 of 1 Scanline
|
||||
#define MODE_HBLANK 0x1 //Set for the remaining ~1/6 of 1 Scanline
|
||||
|
||||
|
||||
extern const char* ReportVideoMode();
|
||||
extern Counter counters[4];
|
||||
extern SyncCounter hsyncCounter;
|
||||
extern SyncCounter vsyncCounter;
|
||||
|
|
|
@ -950,7 +950,7 @@ AppConfig::UiTemplateOptions::UiTemplateOptions()
|
|||
OutputProgressive = L"Progressive";
|
||||
OutputInterlaced = L"Interlaced";
|
||||
Paused = L"<PAUSED> ";
|
||||
TitleTemplate = L"Slot: ${slot} | Speed: ${speed} (${vfps}) | Limiter: ${limiter} | ${gsdx} | ${omodei} | ${cpuusage}";
|
||||
TitleTemplate = L"Slot: ${slot} | Speed: ${speed} (${vfps}) | ${videomode} | Limiter: ${limiter} | ${gsdx} | ${omodei} | ${cpuusage}";
|
||||
}
|
||||
|
||||
void AppConfig::UiTemplateOptions::LoadSave(IniInterface& ini)
|
||||
|
|
|
@ -662,6 +662,7 @@ void GSFrame::OnUpdateTitle( wxTimerEvent& evt )
|
|||
title.Replace(L"${omodef}", omodef);
|
||||
title.Replace(L"${omodei}", omodei);
|
||||
title.Replace(L"${gsdx}", fromUTF8(gsDest));
|
||||
title.Replace(L"${videomode}", ReportVideoMode());
|
||||
if (CoreThread.IsPaused())
|
||||
title = templates.Paused + title;
|
||||
|
||||
|
|
Loading…
Reference in New Issue