Fix window resizing bug

This commit is contained in:
James Rowe 2019-11-28 11:20:42 -07:00
parent 782eae7f65
commit 123c0212ef
2 changed files with 1 additions and 2 deletions

View file

@ -92,6 +92,7 @@ void EmuThread::run() {
MicroProfileOnThreadExit(); MicroProfileOnThreadExit();
#endif #endif
} }
OpenGLWindow::OpenGLWindow(QWindow* parent, QWidget* event_handler, QOpenGLContext* shared_context) OpenGLWindow::OpenGLWindow(QWindow* parent, QWidget* event_handler, QOpenGLContext* shared_context)
: QWindow(parent), event_handler(event_handler), : QWindow(parent), event_handler(event_handler),
context(new QOpenGLContext(shared_context->parent())) { context(new QOpenGLContext(shared_context->parent())) {
@ -342,7 +343,6 @@ void GRenderWindow::focusOutEvent(QFocusEvent* event) {
} }
void GRenderWindow::resizeEvent(QResizeEvent* event) { void GRenderWindow::resizeEvent(QResizeEvent* event) {
child_widget->resize(event->size());
QWidget::resizeEvent(event); QWidget::resizeEvent(event);
OnFramebufferSizeChanged(); OnFramebufferSizeChanged();
} }

View file

@ -129,7 +129,6 @@ public:
protected: protected:
bool event(QEvent* event) override; bool event(QEvent* event) override;
void exposeEvent(QExposeEvent* event) override; void exposeEvent(QExposeEvent* event) override;
private: private: