borked the build
This commit is contained in:
parent
dca8c61a91
commit
15f2208209
1 changed files with 2 additions and 2 deletions
|
@ -101,12 +101,12 @@ PseudoRenderControl::~PseudoRenderControl()
|
||||||
{
|
{
|
||||||
printf("Destroying PseudoColor RenderControl\n");
|
printf("Destroying PseudoColor RenderControl\n");
|
||||||
|
|
||||||
unsigned long *pixels = new unsigned long [ncolors], *p = pixels;
|
unsigned long *pixels = new unsigned long [_ncolors], *p = pixels;
|
||||||
for (int i = 0; i < _ncolors; ++i, ++p)
|
for (int i = 0; i < _ncolors; ++i, ++p)
|
||||||
*p = _colors[i].pixel;
|
*p = _colors[i].pixel;
|
||||||
XFreeColors(**display, display->screenInfo(_screen)->colormap(), pixels,
|
XFreeColors(**display, display->screenInfo(_screen)->colormap(), pixels,
|
||||||
_ncolors, 0);
|
_ncolors, 0);
|
||||||
delete [] colors;
|
delete [] _colors;
|
||||||
}
|
}
|
||||||
|
|
||||||
void PseudoRenderControl::reduceDepth(Surface &sf, XImage *im) const
|
void PseudoRenderControl::reduceDepth(Surface &sf, XImage *im) const
|
||||||
|
|
Loading…
Reference in a new issue