mirror of https://github.com/mgba-emu/mgba.git
Qt: Fix non-Multimedia build (fixes #2180)
This commit is contained in:
parent
ec9594887c
commit
2d87cc1cf2
|
@ -94,11 +94,11 @@ InputController::InputController(int playerId, QWidget* topLevel, QObject* paren
|
||||||
InputControllerImage* image = static_cast<InputControllerImage*>(context);
|
InputControllerImage* image = static_cast<InputControllerImage*>(context);
|
||||||
image->w = w;
|
image->w = w;
|
||||||
image->h = h;
|
image->h = h;
|
||||||
image->p->m_cameraActive = true;
|
|
||||||
if (image->image.isNull()) {
|
if (image->image.isNull()) {
|
||||||
image->image.load(":/res/no-cam.png");
|
image->image.load(":/res/no-cam.png");
|
||||||
}
|
}
|
||||||
#ifdef BUILD_QT_MULTIMEDIA
|
#ifdef BUILD_QT_MULTIMEDIA
|
||||||
|
image->p->m_cameraActive = true;
|
||||||
QByteArray camera = image->p->m_config->getQtOption("camera").toByteArray();
|
QByteArray camera = image->p->m_config->getQtOption("camera").toByteArray();
|
||||||
if (!camera.isNull()) {
|
if (!camera.isNull()) {
|
||||||
image->p->m_cameraDevice = camera;
|
image->p->m_cameraDevice = camera;
|
||||||
|
|
Loading…
Reference in New Issue