Implement the syscons mouse pointer characters for amd64. It was only

implemented for i386 and alpha.
This commit is contained in:
peter 2004-09-24 01:18:22 +00:00
parent 56d687195a
commit 81d75f50e2

View File

@ -750,7 +750,7 @@ draw_pxlmouse(scr_stat *scp, int x, int y)
if (x < scp->xpixel - 8) {
for (i = y, j = 0; i < ymax; ++i, ++j) {
m = ~(mouse_and_mask[j] >> xoff);
#ifdef __i386__
#if defined(__i386__) || defined(__amd64__)
*(u_char *)p &= m >> 8;
*(u_char *)(p + 1) &= m;
#elif defined(__alpha__)
@ -763,7 +763,7 @@ draw_pxlmouse(scr_stat *scp, int x, int y)
xoff += 8;
for (i = y, j = 0; i < ymax; ++i, ++j) {
m = ~(mouse_and_mask[j] >> xoff);
#ifdef __i386__
#if defined(__i386__) || defined(__amd64__)
*(u_char *)p &= m;
#elif defined(__alpha__)
writeb(p, readb(p) & (m >> 8));
@ -776,7 +776,7 @@ draw_pxlmouse(scr_stat *scp, int x, int y)
if (x < scp->xpixel - 8) {
for (i = y, j = 0; i < ymax; ++i, ++j) {
m = mouse_or_mask[j] >> xoff;
#ifdef __i386__
#if defined(__i386__) || defined(__amd64__)
*(u_char *)p &= m >> 8;
*(u_char *)(p + 1) &= m;
#elif defined(__alpha__)
@ -788,7 +788,7 @@ draw_pxlmouse(scr_stat *scp, int x, int y)
} else {
for (i = y, j = 0; i < ymax; ++i, ++j) {
m = mouse_or_mask[j] >> xoff;
#ifdef __i386__
#if defined(__i386__) || defined(__amd64__)
*(u_char *)p &= m;
#elif defined(__alpha__)
writeb(p, readb(p) & (m >> 8));