mirror of
https://github.com/opnsense/src.git
synced 2026-06-10 17:22:46 -04: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:
parent
663072c6d1
commit
4d52abfb0c
1 changed files with 4 additions and 1 deletions
|
|
@ -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]); \
|
||||
|
|
|
|||
Loading…
Reference in a new issue