Qt: Fix Qt GL context sizing
Vicki Pfau vi@endrift.com
Sun, 06 Oct 2019 02:47:40 -0700
2 files changed,
4 insertions(+),
1 deletions(-)
M
src/platform/qt/DisplayGL.cpp
→
src/platform/qt/DisplayGL.cpp
@@ -350,6 +350,7 @@ }
void PainterGL::resize(const QSize& size) { m_size = size; + m_window->setSize(m_size); if (m_started && !m_active) { forceDraw(); }
M
src/platform/qt/DisplayGL.h
→
src/platform/qt/DisplayGL.h
@@ -29,6 +29,8 @@ #include "VideoProxy.h"
#include "platform/video-backend.h" +class QOpenGLPaintDevice; + namespace QGBA { class PainterGL;@@ -119,7 +121,7 @@ QQueue<uint32_t*> m_queue;
QPainter m_painter; QMutex m_mutex; QWindow* m_surface; - QPaintDevice* m_window; + QOpenGLPaintDevice* m_window; QOpenGLContext* m_gl; bool m_active = false; bool m_started = false;