all repos — mgba @ 4681a823b7f8e19febf230e3d5add00378cee9d5

mGBA Game Boy Advance Emulator

Qt: Work around Qt DirectShow bug (fixes #829)
Vicki Pfau vi@endrift.com
Fri, 28 Jul 2017 18:30:15 -0700
commit

4681a823b7f8e19febf230e3d5add00378cee9d5

parent

3927fcfbd3f6ad9177fe283c8efa3bac4b5a87f2

1 files changed, 5 insertions(+), 0 deletions(-)

jump to
M src/platform/qt/VideoDumper.cppsrc/platform/qt/VideoDumper.cpp

@@ -37,7 +37,12 @@ QImage image(bits, mappedFrame.width(), mappedFrame.height(), mappedFrame.bytesPerLine(), format);

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);