mirror of
https://github.com/reactos/reactos.git
synced 2025-05-28 21:48:19 +00:00
cleanup
svn path=/trunk/; revision=850
This commit is contained in:
parent
45043db6ff
commit
66f738dbd1
1 changed files with 15 additions and 17 deletions
|
@ -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
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -95,14 +95,14 @@ ScrCreate (PDEVICE_OBJECT DeviceObject, PIRP Irp)
|
||||||
offset += (READ_PORT_UCHAR (CRTC_DATA) << 8);
|
offset += (READ_PORT_UCHAR (CRTC_DATA) << 8);
|
||||||
|
|
||||||
/* switch blinking characters off */
|
/* switch blinking characters off */
|
||||||
READ_PORT_UCHAR (ATTRC_INPST1 /*0x3da*/);
|
READ_PORT_UCHAR (ATTRC_INPST1);
|
||||||
value = READ_PORT_UCHAR (ATTRC_WRITEREG/*0x3c0*/);
|
value = READ_PORT_UCHAR (ATTRC_WRITEREG);
|
||||||
WRITE_PORT_UCHAR (ATTRC_WRITEREG /*0x3c0*/, 0x10);
|
WRITE_PORT_UCHAR (ATTRC_WRITEREG, 0x10);
|
||||||
data = READ_PORT_UCHAR (ATTRC_READREG /*0x3c1*/);
|
data = READ_PORT_UCHAR (ATTRC_READREG);
|
||||||
data = data & ~0x08;
|
data = data & ~0x08;
|
||||||
WRITE_PORT_UCHAR (ATTRC_WRITEREG /*0x3c0*/, data);
|
WRITE_PORT_UCHAR (ATTRC_WRITEREG, data);
|
||||||
WRITE_PORT_UCHAR (ATTRC_WRITEREG /*0x3c0*/, value);
|
WRITE_PORT_UCHAR (ATTRC_WRITEREG, value);
|
||||||
READ_PORT_UCHAR (ATTRC_INPST1 /*0x3da*/);
|
READ_PORT_UCHAR (ATTRC_INPST1);
|
||||||
__asm__("sti\n\t");
|
__asm__("sti\n\t");
|
||||||
|
|
||||||
DeviceExtension->ScanLines = NR_SCANLINES; /* FIXME: read it from CRTC */
|
DeviceExtension->ScanLines = NR_SCANLINES; /* FIXME: read it from CRTC */
|
||||||
|
@ -211,7 +211,6 @@ ScrWrite (PDEVICE_OBJECT DeviceObject, PIRP Irp)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (cursory >= rows)
|
if (cursory >= rows)
|
||||||
{
|
{
|
||||||
unsigned short *LinePtr;
|
unsigned short *LinePtr;
|
||||||
|
@ -235,7 +234,6 @@ ScrWrite (PDEVICE_OBJECT DeviceObject, PIRP Irp)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Set the cursor position */
|
/* Set the cursor position */
|
||||||
offset = (cursory * columns) + cursorx;
|
offset = (cursory * columns) + cursorx;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue