From 3220560516d04eb49f4ce000afb9a04f13ea1de7 Mon Sep 17 00:00:00 2001 From: Albert Cahalan Date: Sun, 12 Dec 2004 20:18:38 +0000 Subject: [PATCH] tintgray remnants removed --- src/tuxpaint.c | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/src/tuxpaint.c b/src/tuxpaint.c index 3b21580a3..4b95b27e8 100644 --- a/src/tuxpaint.c +++ b/src/tuxpaint.c @@ -551,7 +551,6 @@ typedef struct info_type { int tintable; int mirrorable; int flipable; - int tintgray; } info_type; @@ -836,7 +835,6 @@ static void wait_for_sfx(void); static int current_language(void); static int stamp_colorable(int stamp); static int stamp_tintable(int stamp); -static int stamp_tintgray(int stamp); static void rgbtohsv(Uint8 r8, Uint8 g8, Uint8 b8, float *h, float *s, float *v); static void hsvtorgb(float h, float s, float v, Uint8 *r8, Uint8 *g8, Uint8 *b8); static void show_progress_bar(void); @@ -6390,7 +6388,6 @@ static void setup(int argc, char * argv[]) inf_stamps[i]->tintable = 0; inf_stamps[i]->colorable = 0; inf_stamps[i]->mirrorable = 1; - inf_stamps[i]->tintgray = 1; inf_stamps[i]->flipable = 1; inf_stamps[i]->ratio = 1.0; inf_stamps[i]->tinter = TINTER_NORMAL; @@ -9325,7 +9322,6 @@ static info_type * loadinfo(const char * const fname) inf.colorable = 0; inf.tintable = 0; inf.mirrorable = 1; - inf.tintgray = 1; inf.flipable = 1; inf.tinter = TINTER_NORMAL; @@ -9432,8 +9428,6 @@ static info_type * loadinfo(const char * const fname) } else if (strcmp(buf, "nomirror") == 0) inf.mirrorable = 0; - else if (strcmp(buf, "notintgray") == 0) - inf.tintgray = 0; else if (strcmp(buf, "noflip") == 0) inf.flipable = 0; } @@ -12985,21 +12979,6 @@ static int stamp_tintable(int stamp) } -/* Returns whether low-saturation ('gray') parts of stamp can be tinted: */ - -static int stamp_tintgray(int stamp) -{ - if (inf_stamps[stamp] != NULL) - { - return inf_stamps[stamp]->tintgray; - } - else - { - return 0; - } -} - - static void rgbtohsv(Uint8 r8, Uint8 g8, Uint8 b8, float *h, float *s, float *v) { float rgb_min, rgb_max, delta, r, g, b;