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);
|
||||
image->w = w;
|
||||
image->h = h;
|
||||
image->p->m_cameraActive = true;
|
||||
if (image->image.isNull()) {
|
||||
image->image.load(":/res/no-cam.png");
|
||||
}
|
||||
#ifdef BUILD_QT_MULTIMEDIA
|
||||
image->p->m_cameraActive = true;
|
||||
QByteArray camera = image->p->m_config->getQtOption("camera").toByteArray();
|
||||
if (!camera.isNull()) {
|
||||
image->p->m_cameraDevice = camera;
|
||||
|
|
Loading…
Reference in New Issue