mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-18 13:05:46 -04:00
CommonHostInterface: Add onscreen indicator for rewind
This commit is contained in:
@ -2069,9 +2069,13 @@ void CommonHostInterface::SetRewindState(bool enabled)
|
||||
return;
|
||||
}
|
||||
|
||||
AddOSDMessage(enabled ? TranslateStdString("OSDMessage", "Rewinding...") :
|
||||
TranslateStdString("OSDMessage", "Stopped rewinding."),
|
||||
5.0f);
|
||||
if (!m_fullscreen_ui_enabled)
|
||||
{
|
||||
AddOSDMessage(enabled ? TranslateStdString("OSDMessage", "Rewinding...") :
|
||||
TranslateStdString("OSDMessage", "Stopped rewinding."),
|
||||
5.0f);
|
||||
}
|
||||
|
||||
System::SetRewinding(enabled);
|
||||
UpdateSpeedLimiterState();
|
||||
}
|
||||
|
@ -3420,10 +3420,14 @@ void DrawStatsOverlay()
|
||||
DRAW_LINE(g_large_font, g_large_font->FontSize, 0.0f, IM_COL32(255, 255, 255, 255));
|
||||
}
|
||||
|
||||
if (s_show_status_indicators && (s_host_interface->IsFastForwardEnabled() || s_host_interface->IsTurboEnabled()))
|
||||
if (s_show_status_indicators)
|
||||
{
|
||||
text.Assign(ICON_FA_FAST_FORWARD);
|
||||
DRAW_LINE(g_large_font, g_large_font->FontSize * 2.0f, margin, IM_COL32(255, 255, 255, 255));
|
||||
const bool rewinding = System::IsRewinding();
|
||||
if (rewinding || s_host_interface->IsFastForwardEnabled() || s_host_interface->IsTurboEnabled())
|
||||
{
|
||||
text.Assign(rewinding ? ICON_FA_FAST_BACKWARD : ICON_FA_FAST_FORWARD);
|
||||
DRAW_LINE(g_large_font, g_large_font->FontSize * 2.0f, margin, IM_COL32(255, 255, 255, 255));
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (s_show_status_indicators && state == System::State::Paused)
|
||||
|
Reference in New Issue
Block a user