summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancisco Jerez <currojerez@riseup.net>2009-10-11 20:23:45 +0200
committerFrancisco Jerez <currojerez@riseup.net>2009-10-11 20:40:37 +0200
commitcef4b61b4d0cf096428d89eff65a78fd16f612d5 (patch)
tree1d55f28a5804a86c14127d087a91d975c3c4a50a
parentcc4f7a733e3504260437d06091490fcb8a4c8063 (diff)
Fix NVLoadPalette for 15/16 bit depth.
Signed-off-by: Francisco Jerez <currojerez@riseup.net>
-rw-r--r--src/nv_driver.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nv_driver.c b/src/nv_driver.c
index a31ce5d..4255c19 100644
--- a/src/nv_driver.c
+++ b/src/nv_driver.c
@@ -1419,6 +1419,8 @@ NVLoadPalette(ScrnInfoPtr pScrn, int numColors, int *indices,
lut_b[index * 8 + j] = colors[index].blue << 8;
}
}
+ break;
+
case 16:
for (i = 0; i < numColors; i++) {
index = indices[i];
@@ -1434,6 +1436,8 @@ NVLoadPalette(ScrnInfoPtr pScrn, int numColors, int *indices,
lut_g[index * 4 + j] = colors[index].green << 8;
}
}
+ break;
+
default:
for (i = 0; i < numColors; i++) {
index = indices[i];