From dbd4bd72007e382bea3a123cc2d86fefd962cf37 Mon Sep 17 00:00:00 2001 From: mrwastl Date: Thu, 7 Jun 2012 16:47:13 +0200 Subject: Image/GraphicsMagick: use much more relieable sample() instead of scale() for scaling images; monochrome images: fix monochrome bug in imagefile.c; explicitly prepend namespace Magick:: instead of using 'using namespace Magick;' (easier when debugging); some code / var-names beautifyings --- glcdgraphics/bitmap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'glcdgraphics/bitmap.c') diff --git a/glcdgraphics/bitmap.c b/glcdgraphics/bitmap.c index b96fe6d..d6f0d11 100644 --- a/glcdgraphics/bitmap.c +++ b/glcdgraphics/bitmap.c @@ -10,7 +10,7 @@ * to the COPYING file distributed with this package. * * (c) 2004-2010 Andreas Regel - * (c) 2010-2011 Wolfgang Astleitner + * (c) 2010-2012 Wolfgang Astleitner * Andreas 'randy' Weinberger */ @@ -570,7 +570,7 @@ void cBitmap::DrawBitmap(int x, int y, const cBitmap & bitmap, uint32_t color, u uint32_t cl = 0; const uint32_t * data = bitmap.Data(); - bool ismonochrome = bitmap.IsMonochrome(); + bool ismono = bitmap.IsMonochrome(); int xt, yt; uint32_t alpha; @@ -583,7 +583,7 @@ void cBitmap::DrawBitmap(int x, int y, const cBitmap & bitmap, uint32_t color, u { cl = data[(yt * bitmap.Width())+xt]; if (cl != cColor::Transparent) { - if (ismonochrome) { + if (ismono) { cl = (cl == cColor::Black) ? color : bgcolor; } if (opacity != 255) { -- cgit v1.2.3