ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

Definition at line 428 of file bootvid.c.

Referenced by InbvDisplayString().

{
    ULONG TopDelta = 14;
    
    /* Start looping the string */
    while (*String)
    {
        /* Treat new-line separately */
        if (*String == '\n')
        {
            /* Modify Y position */
            VidpCurrentY += TopDelta;
            if (VidpCurrentY >= VidpScrollRegion[3])
            {
                /* Scroll the view */
                VgaScroll(TopDelta);
                VidpCurrentY -= TopDelta;
                
                /* Preserve row */
                PreserveRow(VidpCurrentY, TopDelta, TRUE);
            }
            
            /* Update current X */
            VidpCurrentX = VidpScrollRegion[0];
            
            /* Preseve the current row */
            PreserveRow(VidpCurrentY, TopDelta, FALSE);
        }
        else if (*String == '\r')
        {
            /* Update current X */
            VidpCurrentX = VidpScrollRegion[0];
            
            /* Check if we're being followed by a new line */
            if (String[1] != '\n') NextLine = TRUE;
        }
        else
        {
            /* Check if we had a \n\r last time */
            if (NextLine)
            {
                /* We did, preserve the current row */
                PreserveRow(VidpCurrentY, TopDelta, TRUE);
                NextLine = FALSE;
            }
            
            /* Display this character */
            DisplayCharacter(*String,
                             VidpCurrentX,
                             VidpCurrentY,
                             VidpTextColor,
                             16);
            VidpCurrentX += 8;
            
            /* Check if we should scroll */
            if (VidpCurrentX > VidpScrollRegion[2])
            {
                /* Update Y position and check if we should scroll it */
                VidpCurrentY += TopDelta;
                if (VidpCurrentY > VidpScrollRegion[3])
                {
                    /* Do the scroll */
                    VgaScroll(TopDelta);
                    VidpCurrentY -= TopDelta;
                    
                    /* Save the row */
                    PreserveRow(VidpCurrentY, TopDelta, TRUE);
                }
                
                /* Update X */
                VidpCurrentX = VidpScrollRegion[0];
            }
        }
        
        /* Get the next character */
        String++;
    }    
}

Generated on Sun May 27 2012 05:56:28 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.