Ignore:
Timestamp:
Apr 11, 2003, 2:08:36 PM (22 years ago)
Author:
sandervl
Message:

DF: Console updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/conbuffervio.cpp

    r7550 r10010  
    1 /* $Id: conbuffervio.cpp,v 1.6 2001-12-05 18:05:59 sandervl Exp $ */
     1/* $Id: conbuffervio.cpp,v 1.7 2003-04-11 12:08:35 sandervl Exp $ */
    22
    33/*
     
    273273            VioWrtCharStr(&pszBuffer[ulCounter], numchar, pConsoleBuffer->coordCursorPosition.Y, pConsoleBuffer->coordCursorPosition.X, 0);
    274274            pConsoleBuffer->coordCursorPosition.X += numchar;
     275            VioSetCurPos(pConsoleBuffer->coordCursorPosition.Y, pConsoleBuffer->coordCursorPosition.X, 0);
    275276        }
    276277        ulCounter += numchar;
     
    283284}
    284285
    285 
     286DWORD HMDeviceConsoleVioBufferClass::FillConsoleOutputAttribute(PHMHANDLEDATA pHMHandleData,
     287                                                             WORD    wAttribute,
     288                                                             DWORD   nLength,
     289                                                             COORD   dwWriteCoord,
     290                                                             LPDWORD lpNumberOfAttrsWritten)
     291{
     292  APIRET  rc;
     293
     294#ifdef DEBUG_LOCAL2
     295  WriteLog("KERNEL32/CONSOLE: HMDeviceConsoleVioBufferClass::FillConsoleOutputAttribute(%08x,attr=%04x,%u,x=%u y=%u,res=%08x).\n",
     296           pHMHandleData,
     297           wAttribute,
     298           nLength,
     299           dwWriteCoord.X,
     300           dwWriteCoord.Y,
     301           lpNumberOfAttrsWritten);
     302#endif
     303
     304  if (HMDeviceConsoleBufferClass::FillConsoleOutputAttribute(pHMHandleData,
     305                                                             wAttribute,
     306                                                             nLength,
     307                                                             dwWriteCoord,
     308                                                             lpNumberOfAttrsWritten))
     309  {
     310    rc = VioWrtNAttr((PBYTE)&wAttribute, *lpNumberOfAttrsWritten, dwWriteCoord.Y, dwWriteCoord.X,
     311                     0);
     312    if (rc == NO_ERROR)
     313    {
     314      return TRUE;
     315    } else
     316    {
     317      return FALSE;
     318    }
     319  } else
     320    return FALSE;
     321}
     322
     323DWORD HMDeviceConsoleVioBufferClass::FillConsoleOutputCharacterA(PHMHANDLEDATA pHMHandleData,
     324                                                              UCHAR   ucCharacter,
     325                                                              DWORD   nLength,
     326                                                              COORD   dwWriteCoord,
     327                                                              LPDWORD lpNumberOfCharsWritten)
     328{
     329  APIRET  rc;
     330
     331#ifdef DEBUG_LOCAL2
     332  WriteLog("KERNEL32/CONSOLE: HMDeviceConsoleVioBufferClass::FillConsoleOutputCharacterA(%08x,char=%02x,%u,x=%u y=%u,res=%08x).\n",
     333           pHMHandleData,
     334           ucCharacter,
     335           nLength,
     336           dwWriteCoord.X,
     337           dwWriteCoord.Y,
     338           lpNumberOfCharsWritten);
     339#endif
     340  if (HMDeviceConsoleBufferClass::FillConsoleOutputCharacterA(pHMHandleData,
     341                                                                 ucCharacter,
     342                                                                 nLength,
     343                                                                 dwWriteCoord,
     344                                                                 lpNumberOfCharsWritten))
     345  {
     346    rc = VioWrtNChar((PCH)&ucCharacter, *lpNumberOfCharsWritten, dwWriteCoord.Y, dwWriteCoord.X,
     347         0);
     348    if (rc == NO_ERROR)
     349    {
     350      return TRUE;
     351    } else
     352    {
     353      return FALSE;
     354    }
     355  } else
     356    return FALSE;
     357}
     358
Note: See TracChangeset for help on using the changeset viewer.