From 123c0212ef2eb5be028c41f62b9c6c094f2f5ede Mon Sep 17 00:00:00 2001 From: James Rowe Date: Thu, 28 Nov 2019 11:20:42 -0700 Subject: [PATCH] Fix window resizing bug --- src/citra_qt/bootmanager.cpp | 2 +- src/citra_qt/bootmanager.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/citra_qt/bootmanager.cpp b/src/citra_qt/bootmanager.cpp index 1fce7cfd32..92c450f78d 100644 --- a/src/citra_qt/bootmanager.cpp +++ b/src/citra_qt/bootmanager.cpp @@ -92,6 +92,7 @@ void EmuThread::run() { MicroProfileOnThreadExit(); #endif } + OpenGLWindow::OpenGLWindow(QWindow* parent, QWidget* event_handler, QOpenGLContext* shared_context) : QWindow(parent), event_handler(event_handler), context(new QOpenGLContext(shared_context->parent())) { @@ -342,7 +343,6 @@ void GRenderWindow::focusOutEvent(QFocusEvent* event) { } void GRenderWindow::resizeEvent(QResizeEvent* event) { - child_widget->resize(event->size()); QWidget::resizeEvent(event); OnFramebufferSizeChanged(); } diff --git a/src/citra_qt/bootmanager.h b/src/citra_qt/bootmanager.h index 44ed0f0599..2a8b32bff9 100644 --- a/src/citra_qt/bootmanager.h +++ b/src/citra_qt/bootmanager.h @@ -129,7 +129,6 @@ public: protected: bool event(QEvent* event) override; - void exposeEvent(QExposeEvent* event) override; private: