author | Francesco Abbate <francesco.bbt@gmail.com> | 2012年06月30日 16:56:06 +0200 |
---|---|---|
committer | Francesco Abbate <francesco.bbt@gmail.com> | 2012年06月30日 16:56:06 +0200 |
commit | fa166d8a6895de8a08cfd9a76b02477358fc9e62 (patch) | |
tree | 741bf6b26a6728db0814291976d95afe55664b5f | |
parent | 4098828abd96a9acbba53e6d98676696023e9e4b (diff) | |
download | gsl-shell-fa166d8a6895de8a08cfd9a76b02477358fc9e62.tar.gz |
-rw-r--r-- | agg-plot/agg_pixfmt_rgb24_lcd.h | 10 |
diff --git a/agg-plot/agg_pixfmt_rgb24_lcd.h b/agg-plot/agg_pixfmt_rgb24_lcd.h index 3327ac0a..bf5453b0 100644 --- a/agg-plot/agg_pixfmt_rgb24_lcd.h +++ b/agg-plot/agg_pixfmt_rgb24_lcd.h @@ -22,6 +22,8 @@ // MA 02110-1301, USA.
//----------------------------------------------------------------------------
+// Modified for GSL Shell by Francesco Abbate, 2012.
+
#ifndef AGG_PIXFMT_RGB24_LCD_INCLUDED
#define AGG_PIXFMT_RGB24_LCD_INCLUDED
@@ -139,10 +141,10 @@ namespace agg for (/* */; cx <= cx_max; cx++)
{
- unsigned c_conv = m_lut->convolution(covers, cx, 0, len - 1);
- unsigned alpha = (c_conv + 1) * (c.a + 1);
- unsigned dst_col = rgb[i], src_col = (*p);
- *p = (int8u)((((dst_col - src_col) * alpha) + (src_col << 16)) >> 16);
+ unsigned c_conv = m_lut->convolution(covers, cx, 0, len - 1);
+ unsigned alpha = (c_conv + 1) * (c.a + 1);
+ unsigned dst_col = rgb[i], src_col = (*p);
+ *p = (int8u)((((dst_col - src_col) * alpha) + (src_col << 16)) >> 16);
p ++;
i = (i + 1) % 3;
|