From 4932c641ee7deb759eeb8c21840f6ed8db7f236d Mon Sep 17 00:00:00 2001 From: louis Date: Sat, 2 Mar 2013 15:31:10 +0100 Subject: nOpacity mirrored --- imageloader.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'imageloader.c') 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; } -- cgit v1.2.3