summaryrefslogtreecommitdiff
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
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.
-rw-r--r--ChangeLog5
-rw-r--r--src/cr-rgb.c15
2 files changed, 6 insertions, 14 deletions
diff --git a/ChangeLog b/ChangeLog
index 150f214..5d82c73 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2004-02-29 Dodji Seketeli <dodji@gnome.org>
+ * src/cr-rgb.c:
+ (cr_rgb_set): fixed a stupid bug here.
+
+2004-02-29 Dodji Seketeli <dodji@gnome.org>
+
* src/cr-sel-eng.c: applied a patch of Rob BUIS
to add the support of the :lang() pseudo class using
the pluggable pseudo class system.
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 ;
}