Ignore '\r' in HalDisplayString().

svn path=/trunk/; revision=2499
This commit is contained in:
Eric Kohl 2002-01-10 01:01:27 +00:00
parent 25c85c7dfe
commit fd4d47ccfc

View file

@ -1,10 +1,28 @@
/* $Id: display.c,v 1.1 2001/08/21 20:18:26 chorns Exp $ /*
* ReactOS kernel
* Copyright (C) 1998, 1999, 2000, 2001, 2002 ReactOS Team
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
/* $Id: display.c,v 1.2 2002/01/10 01:01:27 ekohl Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
* FILE: ntoskrnl/hal/x86/display.c * FILE: ntoskrnl/hal/x86/display.c
* PURPOSE: Blue screen display * PURPOSE: Blue screen display
* PROGRAMMER: Eric Kohl (ekohl@abo.rhein-zeitung.de) * PROGRAMMER: Eric Kohl (ekohl@rz-online.de)
* UPDATE HISTORY: * UPDATE HISTORY:
* Created 08/10/99 * Created 08/10/99
*/ */
@ -162,11 +180,8 @@ HalResetDisplay (VOID)
/* PUBLIC FUNCTIONS *********************************************************/ /* PUBLIC FUNCTIONS *********************************************************/
VOID VOID STDCALL
STDCALL HalAcquireDisplayOwnership(IN PHAL_RESET_DISPLAY_PARAMETERS ResetDisplayParameters)
HalAcquireDisplayOwnership (
IN PHAL_RESET_DISPLAY_PARAMETERS ResetDisplayParameters
)
/* /*
* FUNCTION: * FUNCTION:
* ARGUMENTS: * ARGUMENTS:
@ -225,7 +240,7 @@ HalDisplayString (IN PCH String)
CursorY++; CursorY++;
CursorX = 0; CursorX = 0;
} }
else else if (*pch != '\r')
{ {
HalPutCharacter (*pch); HalPutCharacter (*pch);
CursorX++; CursorX++;
@ -259,14 +274,11 @@ HalDisplayString (IN PCH String)
} }
VOID VOID STDCALL
STDCALL HalQueryDisplayParameters(OUT PULONG DispSizeX,
HalQueryDisplayParameters ( OUT PULONG DispSizeY,
PULONG DispSizeX, OUT PULONG CursorPosX,
PULONG DispSizeY, OUT PULONG CursorPosY)
PULONG CursorPosX,
PULONG CursorPosY
)
{ {
if (DispSizeX) if (DispSizeX)
*DispSizeX = SizeX; *DispSizeX = SizeX;
@ -279,12 +291,9 @@ HalQueryDisplayParameters (
} }
VOID VOID STDCALL
STDCALL HalSetDisplayParameters(IN ULONG CursorPosX,
HalSetDisplayParameters ( IN ULONG CursorPosY)
ULONG CursorPosX,
ULONG CursorPosY
)
{ {
CursorX = (CursorPosX < SizeX) ? CursorPosX : SizeX - 1; CursorX = (CursorPosX < SizeX) ? CursorPosX : SizeX - 1;
CursorY = (CursorPosY < SizeY) ? CursorPosY : SizeY - 1; CursorY = (CursorPosY < SizeY) ? CursorPosY : SizeY - 1;