mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2024-11-30 13:24:16 +01:00
Fix window resizing bug
This commit is contained in:
parent
782eae7f65
commit
123c0212ef
@ -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();
|
||||
}
|
||||
|
@ -129,7 +129,6 @@ public:
|
||||
|
||||
protected:
|
||||
bool event(QEvent* event) override;
|
||||
|
||||
void exposeEvent(QExposeEvent* event) override;
|
||||
|
||||
private:
|
||||
|
Loading…
Reference in New Issue
Block a user