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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user