forked from mia/Aegisub
Hide the CPS value if it's over 100
This commit is contained in:
parent
a30d6121fd
commit
f83f8b73a0
1 changed files with 1 additions and 1 deletions
|
@ -286,7 +286,7 @@ public:
|
||||||
|
|
||||||
void Paint(wxDC &dc, int x, int y, const AssDialogue *d, const agi::Context *) const {
|
void Paint(wxDC &dc, int x, int y, const AssDialogue *d, const agi::Context *) const {
|
||||||
int cps = CPS(d);
|
int cps = CPS(d);
|
||||||
if (cps < 0) return;
|
if (cps < 0 || cps > 100) return;
|
||||||
|
|
||||||
wxString str = std::to_wstring(cps);
|
wxString str = std::to_wstring(cps);
|
||||||
wxSize ext = dc.GetTextExtent(str);
|
wxSize ext = dc.GetTextExtent(str);
|
||||||
|
|
Loading…
Reference in a new issue