1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-20 11:11:24 +00:00

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

implemented for i386 and alpha.
This commit is contained in:
Peter Wemm 2004-09-24 01:18:22 +00:00
parent 6fdf763cef
commit d88cc59371
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=135692

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