mirror of https://github.com/mgba-emu/mgba.git
Qt: Move Display setup code to common code
This commit is contained in:
parent
e9365cdda2
commit
2448ff715f
|
@ -5,9 +5,16 @@
|
|||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
#include "Display.h"
|
||||
|
||||
extern "C" {
|
||||
#include "gba/video.h"
|
||||
}
|
||||
|
||||
using namespace QGBA;
|
||||
|
||||
Display::Display(QWidget* parent)
|
||||
: QWidget(parent)
|
||||
{
|
||||
setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding);
|
||||
setMinimumSize(VIDEO_HORIZONTAL_PIXELS, VIDEO_VERTICAL_PIXELS);
|
||||
setCursor(Qt::BlankCursor);
|
||||
}
|
||||
|
|
|
@ -33,9 +33,6 @@ DisplayGL::DisplayGL(const QGLFormat& format, QWidget* parent)
|
|||
, m_painter(new Painter(format, this))
|
||||
, m_started(false)
|
||||
{
|
||||
setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding);
|
||||
setMinimumSize(VIDEO_HORIZONTAL_PIXELS, VIDEO_VERTICAL_PIXELS);
|
||||
setCursor(Qt::BlankCursor);
|
||||
}
|
||||
|
||||
void DisplayGL::startDrawing(const uint32_t* buffer, GBAThread* thread) {
|
||||
|
|
Loading…
Reference in New Issue