mirror of https://github.com/mgba-emu/mgba.git
Set real size to minimum for display
This commit is contained in:
parent
05cb9d47ab
commit
be9363b7f4
|
@ -28,7 +28,8 @@ Display::Display(QGLFormat format, QWidget* parent)
|
||||||
, m_painter(nullptr)
|
, m_painter(nullptr)
|
||||||
, m_drawThread(nullptr)
|
, m_drawThread(nullptr)
|
||||||
{
|
{
|
||||||
setSizePolicy(QSizePolicy::Ignored, QSizePolicy::Ignored);
|
setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding);
|
||||||
|
setMinimumSize(240, 160);
|
||||||
setAutoBufferSwap(false);
|
setAutoBufferSwap(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -19,9 +19,6 @@ Window::Window(QWidget* parent)
|
||||||
, m_gdbController(nullptr)
|
, m_gdbController(nullptr)
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
|
|
||||||
setMinimumSize(240, 160);
|
|
||||||
|
|
||||||
m_controller = new GameController(this);
|
m_controller = new GameController(this);
|
||||||
m_logView = new LogView();
|
m_logView = new LogView();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue