// the color closest to the one we want.
Visual * vi = DefaultVisual(display, DefaultScreen(display));
- //XColor * cmap = new XColor[vi->map_entries];
boost::scoped_array<XColor> cmap(new XColor[vi->map_entries]);
for (int i = 0; i < vi->map_entries; ++i) {
<< _("Pixel [") << closest_pixel << _("] is used.")
<< endl;
val.foreground = cmap[closest_pixel].pixel;
- //delete[] cmap;
}
val.function = GXcopy;