diff options
author | Lioncash <mathew1800@gmail.com> | 2019-05-29 07:49:38 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2019-06-03 21:31:51 +0200 |
commit | 49e3a6e924c4ee47b3aa5acab2427fab5636793b (patch) | |
tree | da95624873389ad5da5cdde23d53afdd98025a85 | |
parent | input_common/sdl/sdl_impl: Silence sign conversion warnings (diff) | |
download | yuzu-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 |
-rw-r--r-- | src/yuzu/bootmanager.cpp | 11 |
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 { |