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) {
|
||||
image = image.rgbSwapped();
|
||||
} 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
|
||||
#endif
|
||||
}
|
||||
mappedFrame.unmap();
|
||||
emit imageAvailable(image);
|
||||
|
|
Loading…
Reference in New Issue