summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-05-29 07:49:38 +0200
committerLioncash <mathew1800@gmail.com>2019-06-03 21:31:51 +0200
commit49e3a6e924c4ee47b3aa5acab2427fab5636793b (patch)
treeda95624873389ad5da5cdde23d53afdd98025a85 /src
parentinput_common/sdl/sdl_impl: Silence sign conversion warnings (diff)
downloadyuzu-49e3a6e924c4ee47b3aa5acab2427fab5636793b.tar
yuzu-49e3a6e924c4ee47b3aa5acab2427fab5636793b.tar.gz
yuzu-49e3a6e924c4ee47b3aa5acab2427fab5636793b.tar.bz2
yuzu-49e3a6e924c4ee47b3aa5acab2427fab5636793b.tar.lz
yuzu-49e3a6e924c4ee47b3aa5acab2427fab5636793b.tar.xz
yuzu-49e3a6e924c4ee47b3aa5acab2427fab5636793b.tar.zst
yuzu-49e3a6e924c4ee47b3aa5acab2427fab5636793b.zip
Diffstat (limited to 'src')
-rw-r--r--src/yuzu/bootmanager.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/yuzu/bootmanager.cpp b/src/yuzu/bootmanager.cpp
index 9e420b359..d9d2a8a4c 100644
--- a/src/yuzu/bootmanager.cpp
+++ b/src/yuzu/bootmanager.cpp
@@ -266,7 +266,7 @@ void GRenderWindow::ForwardKeyReleaseEvent(QKeyEvent* event) {
}
void GRenderWindow::BackupGeometry() {
- geometry = ((QWidget*)this)->saveGeometry();
+ geometry = QWidget::saveGeometry();
}
void GRenderWindow::RestoreGeometry() {
@@ -283,10 +283,11 @@ void GRenderWindow::restoreGeometry(const QByteArray& geometry) {
QByteArray GRenderWindow::saveGeometry() {
// If we are a top-level widget, store the current geometry
// otherwise, store the last backup
- if (parent() == nullptr)
- return ((QWidget*)this)->saveGeometry();
- else
- return geometry;
+ if (parent() == nullptr) {
+ return QWidget::saveGeometry();
+ }
+
+ return geometry;
}
qreal GRenderWindow::GetWindowPixelRatio() const {