Qt: Fix lupdate complaints

This commit is contained in:
Vicki Pfau 2021-08-10 23:52:08 -07:00
parent cdf0d774ab
commit de376a99bf
2 changed files with 3 additions and 3 deletions

View File

@ -216,7 +216,7 @@ ApplicationUpdater::UpdateInfo::operator QString() const {
return version;
}
if (rev <= 0) {
return tr("(None)");
return ApplicationUpdater::tr("(None)");
}
int len = strlen(gitCommitShort);
const char* pos = strchr(gitCommitShort, '-');

View File

@ -457,13 +457,13 @@ void PainterGL::draw() {
m_delayTimer.start();
} else {
if (sync->audioWait || sync->videoFrameWait) {
while (m_delayTimer.nsecsElapsed() + 1'000'000 < 1'000'000'000 / sync->fpsTarget) {
while (m_delayTimer.nsecsElapsed() + 1000000 < 1000000000 / sync->fpsTarget) {
QThread::usleep(500);
}
forceRedraw = sync->videoFrameWait;
}
if (!forceRedraw) {
forceRedraw = m_delayTimer.nsecsElapsed() + 1'000'000 >= 1'000'000'000 / m_surface->screen()->refreshRate();
forceRedraw = m_delayTimer.nsecsElapsed() + 1000000 >= 1000000000 / m_surface->screen()->refreshRate();
}
}
mCoreSyncWaitFrameEnd(sync);