X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cfbe03c9c3ffecd6363dcc63e6fc27b8c6ed70aa..70aedad68fe4fc59134c55055b35f35a5ce3fd7a:/src/xpm/rgb.c diff --git a/src/xpm/rgb.c b/src/xpm/rgb.c index 38b180dd20..efca96467d 100644 --- a/src/xpm/rgb.c +++ b/src/xpm/rgb.c @@ -193,10 +193,12 @@ xpmGetRgbName(xpmRgbName rgbn[], int rgbn_max, int red, int green, int blue) i = 0; while (i < numTheRGBRecords) { rgbVal = theRGBRecords[i].rgb; +#if !defined(__VISAGECPP__) if (GetRValue(rgbVal) == red && GetGValue(rgbVal) == green && GetBValue(rgbVal) == blue) return (theRGBRecords[i].name); +#endif i++; } return (NULL); @@ -247,9 +249,11 @@ xpmGetRGBfromName(char *inname, int *r, int *g, int *b) cmp = strcasecmp(name, theRGBRecords[middle].name); if (cmp == 0) { rgbVal = theRGBRecords[middle].rgb; +#if !defined(__VISAGECPP__) *r = GetRValue(rgbVal); *g = GetGValue(rgbVal); *b = GetBValue(rgbVal); +#endif free(name); return (1); } else if (cmp < 0) {