summaryrefslogtreecommitdiff
path: root/src/cr-rgb.c
diff options
context:
space:
mode:
authorDodji Seketeli <dodji@gnome.org>2004-02-29 14:29:40 +0000
committerDodji Seketeli <dodji@src.gnome.org>2004-02-29 14:29:40 +0000
commit403dc26c95b7d2b3a57eef535d14ff38ab653d7e (patch)
tree3f10b28aee387da3c96492908b7ff723eac7fde3 /src/cr-rgb.c
parentac6a175cddd835cf0e36ad0ffba103fc8cb3a579 (diff)
downloadlibcroco-403dc26c95b7d2b3a57eef535d14ff38ab653d7e.tar.gz
fixed a stupid bug here.
2004-02-29 Dodji Seketeli <dodji@gnome.org> * src/cr-rgb.c: (cr_rgb_set): fixed a stupid bug here.
Diffstat (limited to 'src/cr-rgb.c')
-rw-r--r--src/cr-rgb.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/src/cr-rgb.c b/src/cr-rgb.c
index 5999d23..011c653 100644
--- a/src/cr-rgb.c
+++ b/src/cr-rgb.c
@@ -304,8 +304,6 @@ cr_rgb_dump (CRRgb *a_this, FILE *a_fp)
/**
*Sets rgb values to the RGB.
- *If the rgb values are percentages, make
- *sure that the sum of the 3 values makes 100%.
*@param a_this the current instance of #CRRgb.
*@param a_red the red value.
*@param a_green the green value.
@@ -331,18 +329,7 @@ cr_rgb_set (CRRgb *a_this, gulong a_red,
a_this->red = a_red ;
a_this->green = a_green ;
- if (a_is_percentage != FALSE)
- {
- if (a_red + a_green >= 100)
- {
- a_green = 100 - a_red ;
- }
- a_this->blue = 100 - a_red - a_green ;
- }
- else
- {
- a_this->blue = a_blue ;
- }
+ a_this->blue = a_blue ;
return CR_OK ;
}