Fix window resizing bug
This commit is contained in:
parent
782eae7f65
commit
123c0212ef
@ -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();
|
||||||
}
|
}
|
||||||
|
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user