Add modification notice in agg::pixfmt_rgb24_lcd and fix code formatting - gsl-shell.git - gsl-shell

index : gsl-shell.git
gsl-shell
summary refs log tree commit diff
diff options
context:
space:
mode:
authorFrancesco Abbate <francesco.bbt@gmail.com>2012年06月30日 16:56:06 +0200
committerFrancesco Abbate <francesco.bbt@gmail.com>2012年06月30日 16:56:06 +0200
commitfa166d8a6895de8a08cfd9a76b02477358fc9e62 (patch)
tree741bf6b26a6728db0814291976d95afe55664b5f
parent4098828abd96a9acbba53e6d98676696023e9e4b (diff)
downloadgsl-shell-fa166d8a6895de8a08cfd9a76b02477358fc9e62.tar.gz
Add modification notice in agg::pixfmt_rgb24_lcd and fix code formatting
Diffstat
-rw-r--r--agg-plot/agg_pixfmt_rgb24_lcd.h 10
1 files changed, 6 insertions, 4 deletions
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;
generated by cgit v1.2.3 (git 2.39.1) at 2025年09月21日 10:33:49 +0000

AltStyle によって変換されたページ (->オリジナル) /