mirror of https://github.com/mgba-emu/mgba.git
Qt: Work around Qt DirectShow bug (fixes #829)
This commit is contained in:
parent
3927fcfbd3
commit
4681a823b7
|
@ -37,7 +37,12 @@ bool VideoDumper::present(const QVideoFrame& frame) {
|
||||||
if (swap) {
|
if (swap) {
|
||||||
image = image.rgbSwapped();
|
image = image.rgbSwapped();
|
||||||
} else {
|
} else {
|
||||||
|
#ifdef Q_OS_WIN
|
||||||
|
// Qt's DirectShow plug-in is pretty dang buggy
|
||||||
|
image = image.mirrored(true);
|
||||||
|
#else
|
||||||
image = image.copy(); // Create a deep copy of the bits
|
image = image.copy(); // Create a deep copy of the bits
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
mappedFrame.unmap();
|
mappedFrame.unmap();
|
||||||
emit imageAvailable(image);
|
emit imageAvailable(image);
|
||||||
|
|
Loading…
Reference in New Issue