removed color functions

This commit is contained in:
fluxgen 2002-09-14 15:05:00 +00:00
parent 3dc5c4bf55
commit afd7e5a6b7
2 changed files with 2 additions and 25 deletions

View file

@ -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,

View file

@ -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