* 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:
Axel Dörfler 2006-12-19 23:01:58 +00:00
parent 0c6f77951e
commit 7da584bb64
1 changed files with 5 additions and 5 deletions

View File

@ -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;