Put a small TODO into the file: apparently, color_distance() does bad things for

Qemu - the loop to initialize the system color map takes two seconds over here.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15149 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2005-11-25 15:32:40 +00:00
parent c3b8f9f69a
commit a77d29375c
+2
View File
@@ -369,6 +369,8 @@ PaletteConverter::SetTo(const rgb_color *palette)
// init color list
memcpy(fOwnColorMap->color_list, palette, sizeof(rgb_color) * 256);
// init index map
// TODO: build this list takes about 2 seconds in qemu on my system
// (because of color_distance())
for (int32 color = 0; color < 32768; color++) {
// get components
uint8 red = (color & 0x7c00) >> 7;