From afd7e5a6b7043812e472994dd2f49941094ee080 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Sat, 14 Sep 2002 15:05:00 +0000 Subject: removed color functions --- src/Image.cc | 22 +--------------------- src/Image.hh | 5 +---- 2 files changed, 2 insertions(+), 25 deletions(-) diff --git a/src/Image.cc b/src/Image.cc index 0387304..3d73374 100644 --- a/src/Image.cc +++ b/src/Image.cc @@ -22,7 +22,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Image.cc,v 1.14 2002/09/14 13:52:08 fluxgen Exp $ +// $Id: Image.cc,v 1.15 2002/09/14 15:05:00 fluxgen Exp $ //use GNU extensions #ifndef _GNU_SOURCE @@ -2309,26 +2309,6 @@ void BImageControl::removeImage(Pixmap pixmap) { } - - -unsigned long BImageControl::color(const char *colorname) { - XColor color; - color.pixel = 0; - - if (! XParseColor(basedisplay->getXDisplay(), colormap(), colorname, &color)) - fprintf(stderr, "BImageControl::color: color parse error: \"%s\"\n", - colorname); - else { - if (! XAllocColor(basedisplay->getXDisplay(), colormap(), &color)) - fprintf(stderr, "BImageControl::color: color alloc error: \"%s\"\n", - colorname); - else - fprintf(stderr, "%s(%d) Allocated color:%s", __FILE__, __LINE__, colorname); - } - return color.pixel; -} - - void BImageControl::colorTables(unsigned char **rmt, unsigned char **gmt, unsigned char **bmt, int *roff, int *goff, int *boff, diff --git a/src/Image.hh b/src/Image.hh index 8df93fe..8ae8505 100644 --- a/src/Image.hh +++ b/src/Image.hh @@ -22,7 +22,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Image.hh,v 1.12 2002/09/14 13:50:38 fluxgen Exp $ +// $Id: Image.hh,v 1.13 2002/09/14 15:03:32 fluxgen Exp $ #ifndef IMAGE_HH #define IMAGE_HH @@ -120,9 +120,6 @@ public: inline int depth() const { return screen_depth; } inline int colorsPerChannel() const { return colors_per_channel; } - unsigned long color(const char *colorname); - unsigned long color(const char *, unsigned char *, unsigned char *, - unsigned char *); unsigned long getSqrt(unsigned int val); /** Render to pixmap -- cgit v0.11.2