ColorConversion: Add cast to silence -Wclass-memaccess.
This commit is contained in:
parent
1e541d3127
commit
d1035d48e6
@ -143,7 +143,7 @@ PaletteConverter::SetTo(const rgb_color *palette)
|
||||
if (error == B_OK) {
|
||||
fColorMap = fOwnColorMap;
|
||||
// init color list
|
||||
memcpy(fOwnColorMap->color_list, palette, sizeof(rgb_color) * 256);
|
||||
memcpy((void*)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())
|
||||
|
Loading…
Reference in New Issue
Block a user