svn path=/trunk/; revision=850
This commit is contained in:
Eric Kohl 1999-12-11 01:44:29 +00:00
parent 45043db6ff
commit 66f738dbd1

View file

@ -1,4 +1,4 @@
/* $Id: blue.c,v 1.15 1999/12/10 17:04:37 dwelch Exp $
/* $Id: blue.c,v 1.16 1999/12/11 01:44:29 ekohl Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
@ -95,14 +95,14 @@ ScrCreate (PDEVICE_OBJECT DeviceObject, PIRP Irp)
offset += (READ_PORT_UCHAR (CRTC_DATA) << 8);
/* switch blinking characters off */
READ_PORT_UCHAR (ATTRC_INPST1 /*0x3da*/);
value = READ_PORT_UCHAR (ATTRC_WRITEREG/*0x3c0*/);
WRITE_PORT_UCHAR (ATTRC_WRITEREG /*0x3c0*/, 0x10);
data = READ_PORT_UCHAR (ATTRC_READREG /*0x3c1*/);
READ_PORT_UCHAR (ATTRC_INPST1);
value = READ_PORT_UCHAR (ATTRC_WRITEREG);
WRITE_PORT_UCHAR (ATTRC_WRITEREG, 0x10);
data = READ_PORT_UCHAR (ATTRC_READREG);
data = data & ~0x08;
WRITE_PORT_UCHAR (ATTRC_WRITEREG /*0x3c0*/, data);
WRITE_PORT_UCHAR (ATTRC_WRITEREG /*0x3c0*/, value);
READ_PORT_UCHAR (ATTRC_INPST1 /*0x3da*/);
WRITE_PORT_UCHAR (ATTRC_WRITEREG, data);
WRITE_PORT_UCHAR (ATTRC_WRITEREG, value);
READ_PORT_UCHAR (ATTRC_INPST1);
__asm__("sti\n\t");
DeviceExtension->ScanLines = NR_SCANLINES; /* FIXME: read it from CRTC */
@ -211,7 +211,6 @@ ScrWrite (PDEVICE_OBJECT DeviceObject, PIRP Irp)
break;
}
if (cursory >= rows)
{
unsigned short *LinePtr;
@ -235,7 +234,6 @@ ScrWrite (PDEVICE_OBJECT DeviceObject, PIRP Irp)
}
}
/* Set the cursor position */
offset = (cursory * columns) + cursorx;