* Looks like setting the first 16 palette entries is not enough.
* Tested a bit more, and there seems to be some minor drawing problems. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19568 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
0c6f77951e
commit
7da584bb64
@ -1175,13 +1175,13 @@ AccelerantHWInterface::_SetGrayscalePalette()
|
||||
|
||||
if (fFrontBuffer->Width() > fFrontBuffer->BytesPerRow()) {
|
||||
// VGA 16 color grayscale planar mode
|
||||
for (int32 i = 0; i < 16; i++) {
|
||||
colors[j++] = i * 17;
|
||||
colors[j++] = i * 17;
|
||||
colors[j++] = i * 17;
|
||||
for (int32 i = 0; i < 256; i++) {
|
||||
colors[j++] = (i & 0xf) * 17;
|
||||
colors[j++] = (i & 0xf) * 17;
|
||||
colors[j++] = (i & 0xf) * 17;
|
||||
}
|
||||
|
||||
setIndexedColors(16, 0, colors, 0);
|
||||
setIndexedColors(256, 0, colors, 0);
|
||||
} else {
|
||||
for (int32 i = 0; i < 256; i++) {
|
||||
colors[j++] = i;
|
||||
|
Loading…
Reference in New Issue
Block a user