mirror of https://github.com/ZDoom/qzdoom.git
- Don't initialize GrayscaleToColor 256 times for each special colormap.
SVN r1869 (trunk)
This commit is contained in:
parent
a3c80447d4
commit
1263d015cb
|
@ -412,6 +412,7 @@ int AddSpecialColormap(float r1, float g1, float b1, float r2, float g2, float b
|
||||||
MIN(255, int(b1 + intensity*b2)));
|
MIN(255, int(b1 + intensity*b2)));
|
||||||
|
|
||||||
cm->Colormap[c] = ColorMatcher.Pick(pe);
|
cm->Colormap[c] = ColorMatcher.Pick(pe);
|
||||||
|
}
|
||||||
|
|
||||||
// This table is used by the texture composition code
|
// This table is used by the texture composition code
|
||||||
for(int i = 0;i < 256; i++)
|
for(int i = 0;i < 256; i++)
|
||||||
|
@ -420,7 +421,6 @@ int AddSpecialColormap(float r1, float g1, float b1, float r2, float g2, float b
|
||||||
MIN(255, int(g1 + i*g2)),
|
MIN(255, int(g1 + i*g2)),
|
||||||
MIN(255, int(b1 + i*b2)));
|
MIN(255, int(b1 + i*b2)));
|
||||||
}
|
}
|
||||||
}
|
|
||||||
return SpecialColormaps.Size() - 1;
|
return SpecialColormaps.Size() - 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue