[gimp/goat-invasion: 164/325] app: remove shade_pixels(), no clue when it became unused
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/goat-invasion: 164/325] app: remove shade_pixels(), no clue when it became unused
- Date: Fri, 30 Mar 2012 09:48:02 +0000 (UTC)
commit 51cc82bb9b0c796702830e41f271c6ec55c0f62a
Author: Michael Natterer <mitch gimp org>
Date: Tue Mar 20 15:13:39 2012 +0100
app: remove shade_pixels(), no clue when it became unused
app/paint-funcs/paint-funcs-generic.h | 27 ---------------------------
app/paint-funcs/paint-funcs.h | 8 --------
2 files changed, 0 insertions(+), 35 deletions(-)
---
diff --git a/app/paint-funcs/paint-funcs-generic.h b/app/paint-funcs/paint-funcs-generic.h
index 48c16a0..99d9320 100644
--- a/app/paint-funcs/paint-funcs-generic.h
+++ b/app/paint-funcs/paint-funcs-generic.h
@@ -185,33 +185,6 @@ blend_pixels (const guchar *src1,
}
}
-inline void
-shade_pixels (const guchar *src,
- guchar *dest,
- const guchar *col,
- guchar blend,
- guint w,
- guint bytes,
- gboolean has_alpha)
-{
- const guchar blend2 = (255 - blend);
- const guint alpha = (has_alpha) ? bytes - 1 : bytes;
-
- while (w--)
- {
- guint b;
-
- for (b = 0; b < alpha; b++)
- dest[b] = (src[b] * blend2 + col[b] * blend) / 255;
-
- if (has_alpha)
- dest[alpha] = src[alpha]; /* alpha channel */
-
- src += bytes;
- dest += bytes;
- }
-}
-
static inline void
replace_pixels (const guchar *src1,
diff --git a/app/paint-funcs/paint-funcs.h b/app/paint-funcs/paint-funcs.h
index 12aa620..e8cd5c4 100644
--- a/app/paint-funcs/paint-funcs.h
+++ b/app/paint-funcs/paint-funcs.h
@@ -33,14 +33,6 @@ void blend_pixels (const guchar *src1,
guint w,
guint bytes);
-void shade_pixels (const guchar *src,
- guchar *dest,
- const guchar *color,
- guchar rblend,
- guint w,
- guint bytes,
- gboolean has_alpha);
-
void swap_pixels (guchar *src,
guchar *dest,
guint length);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]