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:
parent
06f436b3ac
commit
c06fd79574
@ -2106,9 +2106,9 @@ ChartWindow::SetColorSpace(buffer *buf, color_space depth)
|
||||
if (swap_needed) {
|
||||
col = buf->colors[0];
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user