mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
Map video memory based on actual size of screen
svn path=/trunk/; revision=4932
This commit is contained in:
parent
7704a6609a
commit
76d1058fc3
1 changed files with 6 additions and 7 deletions
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: blue.c,v 1.37 2003/03/21 21:09:40 hbirr Exp $
|
/* $Id: blue.c,v 1.38 2003/06/20 13:04:09 gvg Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -23,7 +23,6 @@
|
||||||
/* DEFINITIONS ***************************************************************/
|
/* DEFINITIONS ***************************************************************/
|
||||||
|
|
||||||
#define VIDMEM_BASE 0xb8000
|
#define VIDMEM_BASE 0xb8000
|
||||||
#define VIDMEM_SIZE 0x2000
|
|
||||||
|
|
||||||
#define CRTC_COMMAND ((PUCHAR)0x3d4)
|
#define CRTC_COMMAND ((PUCHAR)0x3d4)
|
||||||
#define CRTC_DATA ((PUCHAR)0x3d5)
|
#define CRTC_DATA ((PUCHAR)0x3d5)
|
||||||
|
@ -79,11 +78,6 @@ ScrCreate(PDEVICE_OBJECT DeviceObject,
|
||||||
|
|
||||||
DeviceExtension = DeviceObject->DeviceExtension;
|
DeviceExtension = DeviceObject->DeviceExtension;
|
||||||
|
|
||||||
/* get pointer to video memory */
|
|
||||||
BaseAddress.QuadPart = VIDMEM_BASE;
|
|
||||||
DeviceExtension->VideoMemory =
|
|
||||||
(PBYTE)MmMapIoSpace (BaseAddress, VIDMEM_SIZE, FALSE);
|
|
||||||
|
|
||||||
/* disable interrupts */
|
/* disable interrupts */
|
||||||
__asm__("cli\n\t");
|
__asm__("cli\n\t");
|
||||||
|
|
||||||
|
@ -130,6 +124,11 @@ ScrCreate(PDEVICE_OBJECT DeviceObject,
|
||||||
DeviceExtension->Rows,
|
DeviceExtension->Rows,
|
||||||
DeviceExtension->ScanLines);
|
DeviceExtension->ScanLines);
|
||||||
|
|
||||||
|
/* get pointer to video memory */
|
||||||
|
BaseAddress.QuadPart = VIDMEM_BASE;
|
||||||
|
DeviceExtension->VideoMemory =
|
||||||
|
(PBYTE)MmMapIoSpace (BaseAddress, DeviceExtension->Rows * DeviceExtension->Columns * 2, FALSE);
|
||||||
|
|
||||||
DeviceExtension->CursorSize = 5; /* FIXME: value correct?? */
|
DeviceExtension->CursorSize = 5; /* FIXME: value correct?? */
|
||||||
DeviceExtension->CursorVisible = TRUE;
|
DeviceExtension->CursorVisible = TRUE;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue