all repos — mgba @ a5852c6e126d82915fb5da23d8d3c347ec9755d2

mGBA Game Boy Advance Emulator

3DS, Qt: Fix flipped camera images (fixes #844)
Vicki Pfau vi@endrift.com
Fri, 04 Aug 2017 10:20:23 -0700
commit

a5852c6e126d82915fb5da23d8d3c347ec9755d2

parent

b1b78a46b586a897490c1cefbabbf08302bd5a49

2 files changed, 2 insertions(+), 1 deletions(-)

jump to
M src/platform/3ds/main.csrc/platform/3ds/main.c

@@ -254,6 +254,7 @@ }

CAMU_SetSize(imageSource->cam, SIZE_QCIF, CONTEXT_A); CAMU_SetOutputFormat(imageSource->cam, OUTPUT_RGB_565, CONTEXT_A); CAMU_SetFrameRate(imageSource->cam, FRAME_RATE_30); + CAMU_FlipImage(imageSource->cam, FLIP_NONE, CONTEXT_A); CAMU_SetNoiseFilter(imageSource->cam, true); CAMU_SetAutoExposure(imageSource->cam, false);
M src/platform/qt/VideoDumper.cppsrc/platform/qt/VideoDumper.cpp

@@ -39,7 +39,7 @@ image = image.rgbSwapped();

} else { #ifdef Q_OS_WIN // Qt's DirectShow plug-in is pretty dang buggy - image = image.mirrored(true); + image = image.mirrored(); #else image = image.copy(); // Create a deep copy of the bits #endif