mirror of https://github.com/mgba-emu/mgba.git
Qt: Minor cleanup
This commit is contained in:
parent
fcb5a4168f
commit
baeba633ee
|
@ -109,7 +109,6 @@ void DisplayQt::paintEvent(QPaintEvent*) {
|
||||||
ds.setWidth(ds.width() - ds.width() % m_width);
|
ds.setWidth(ds.width() - ds.width() % m_width);
|
||||||
ds.setHeight(ds.height() - ds.height() % m_height);
|
ds.setHeight(ds.height() - ds.height() % m_height);
|
||||||
}
|
}
|
||||||
#warning TODO: Add interframeBlending
|
|
||||||
QPoint origin = QPoint((s.width() - ds.width()) / 2, (s.height() - ds.height()) / 2);
|
QPoint origin = QPoint((s.width() - ds.width()) / 2, (s.height() - ds.height()) / 2);
|
||||||
QRect full(origin, ds);
|
QRect full(origin, ds);
|
||||||
|
|
||||||
|
|
|
@ -773,18 +773,15 @@ void Window::gameStarted() {
|
||||||
}
|
}
|
||||||
m_actions.rebuildMenu(menuBar(), this, *m_shortcutController);
|
m_actions.rebuildMenu(menuBar(), this, *m_shortcutController);
|
||||||
|
|
||||||
|
|
||||||
#ifdef USE_DISCORD_RPC
|
#ifdef USE_DISCORD_RPC
|
||||||
DiscordCoordinator::gameStarted(m_controller);
|
DiscordCoordinator::gameStarted(m_controller);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void Window::gameStopped() {
|
void Window::gameStopped() {
|
||||||
#ifdef M_CORE_GBA
|
|
||||||
for (Action* action : m_platformActions) {
|
for (Action* action : m_platformActions) {
|
||||||
action->setEnabled(true);
|
action->setEnabled(true);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
for (Action* action : m_gameActions) {
|
for (Action* action : m_gameActions) {
|
||||||
action->setEnabled(false);
|
action->setEnabled(false);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue