summaryrefslogtreecommitdiff
path: root/imageloader.c
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2013-03-02 15:31:10 +0100
committerlouis <louis.braun@gmx.de>2013-03-02 15:31:10 +0100
commit4932c641ee7deb759eeb8c21840f6ed8db7f236d (patch)
treee6aa911501b7619cfa39b4b64e216d1cc3bcdfd9 /imageloader.c
parentd099b5d5f922e6773ad5c5165e951fc280c5c5c1 (diff)
downloadskin-nopacity-4932c641ee7deb759eeb8c21840f6ed8db7f236d.tar.gz
skin-nopacity-4932c641ee7deb759eeb8c21840f6ed8db7f236d.tar.bz2
nOpacity mirrored
Diffstat (limited to 'imageloader.c')
-rw-r--r--imageloader.c4
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;
}