mirror of https://github.com/mgba-emu/mgba.git
Qt: Fix lupdate complaints
This commit is contained in:
parent
cdf0d774ab
commit
de376a99bf
|
@ -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, '-');
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue