diff options
Diffstat (limited to 'imageloader.c')
-rw-r--r-- | imageloader.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/imageloader.c b/imageloader.c index 188100b..bfc4ce5 100644 --- a/imageloader.c +++ b/imageloader.c @@ -159,7 +159,7 @@ bool cImageLoader::LoadAdditionalRecordingImage(cString path, cString name) { return false; } -void cImageLoader::DrawBackground(tColor back, tColor blend, int width, int height) { +void cImageLoader::DrawBackground(tColor back, tColor blend, int width, int height, bool mirror) { Color Back = Argb2Color(back); Color Blend = Argb2Color(blend); Image tmp(Geometry(width, height), Blend); @@ -167,6 +167,8 @@ void cImageLoader::DrawBackground(tColor back, tColor blend, int width, int heig tmp.sparseColor(MatteChannel, BarycentricColorInterpolate, 9, arguments); Image tmp2(Geometry(width, height), Back); tmp.composite(tmp2, 0, 0, OverlayCompositeOp); + if (mirror) + tmp.flop(); buffer = tmp; } |