Chart: fix endianness swap.
* This is most likely dead code currently (it is used only when the framebuffer is big endian, and the the cpu is little endian) * Fixes a warning. * Can't confirm if B_SWAP_INT32 is really supposed to swap the value in-place, or if this is a bug in Chart. Probably the latter.
This commit is contained in:
@@ -2106,9 +2106,9 @@ ChartWindow::SetColorSpace(buffer *buf, color_space depth)
|
|||||||
if (swap_needed) {
|
if (swap_needed) {
|
||||||
col = buf->colors[0];
|
col = buf->colors[0];
|
||||||
for (i = 0; i < 7*8; i++) {
|
for (i = 0; i < 7*8; i++) {
|
||||||
B_SWAP_INT32(col[i]);
|
col[i] = B_SWAP_INT32(col[i]);
|
||||||
}
|
}
|
||||||
B_SWAP_INT32(buf->back_color);
|
buf->back_color = B_SWAP_INT32(buf->back_color);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user