all repos — mgba @ 6ad402170c148bf6668e49767eceee040342a540

mGBA Game Boy Advance Emulator

src/platform/qt/Display.cpp (view raw)

 1/* Copyright (c) 2013-2015 Jeffrey Pfau
 2 *
 3 * This Source Code Form is subject to the terms of the Mozilla Public
 4 * License, v. 2.0. If a copy of the MPL was not distributed with this
 5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 6#include "Display.h"
 7
 8extern "C" {
 9#include "gba/video.h"
10}
11
12using namespace QGBA;
13
14Display::Display(QWidget* parent)
15	: QWidget(parent)
16{
17	setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding);
18	setMinimumSize(VIDEO_HORIZONTAL_PIXELS, VIDEO_VERTICAL_PIXELS);
19}