From 5dae18844ab6a08feb4e1062991a4ca861ef1655 Mon Sep 17 00:00:00 2001 From: David du Colombier <0intro@gmail.com> Date: Fri, 23 Jun 1995 00:00:00 +0000 Subject: [PATCH] Plan 9 from Bell Labs 1995-06-23 --- pc/vgaark2000pv.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pc/vgaark2000pv.c b/pc/vgaark2000pv.c index 7c1a7dce200fe414223a252a99d57e9b91db68f5..368bb9cef76e3b6f84d2b225b3311bfc25814e65 100644 --- a/pc/vgaark2000pv.c +++ b/pc/vgaark2000pv.c @@ -80,15 +80,16 @@ load(Cursor *c) * If it's the same as the last cursor we loaded, * just make sure it's enabled. */ - seq20 = vgaxi(Seqx, 0x20); lock(&ark2000pvlock); + seq20 = vgaxi(Seqx, 0x20); if(memcmp(c, &curcursor, sizeof(Cursor)) == 0){ - vgaxo(Seqx, 0x20, 0x80|seq20); + vgaxo(Seqx, 0x20, seq20|0x08); unlock(&ark2000pvlock); return; } memmove(&curcursor, c, sizeof(Cursor)); + vgaxo(Seqx, 0x20, seq20 & ~0x08); /* * Is linear addressing turned on? This will determine * how we access the cursor storage. @@ -129,7 +130,7 @@ load(Cursor *c) * Set the cursor hotpoint and enable the cursor. */ hotpoint = c->offset; - vgaxo(Seqx, 0x20, 0x80|seq20); + vgaxo(Seqx, 0x20, seq20|0x08); unlock(&ark2000pvlock); }