1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-12 14:29:28 +00:00

Separate 24-bit pixel draw from 32-bit case. Although it is slower, we do

not want to write a useless zero to inaccessible memory region.
This commit is contained in:
Jung-uk Kim 2010-03-23 22:16:57 +00:00
parent 663072c6d1
commit 4d52abfb0c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=205550

View File

@ -181,9 +181,12 @@ static u_short mouse_or_mask[16] = {
#define vga_drawpxl(pos, color) \
switch (scp->sc->adp->va_info.vi_depth) { \
case 32: \
case 24: \
writel(pos, vga_palette32[color]); \
break; \
case 24: \
writew(pos, vga_palette32[color]); \
writeb(pos + 2, vga_palette32[color] >> 16); \
break; \
case 16: \
if (scp->sc->adp->va_info.vi_pixel_fsizes[1] == 5)\
writew(pos, vga_palette15[color]); \