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 310 of file video.c.

Referenced by LlbFwVideoClearScreen(), and LlbStartup().

{
    ULONG ScreenSize, p;
    ULONG BackColor;
    PUSHORT VideoBuffer;
    
    /* Get frame buffer and reset cursor position */
    VideoBuffer = LlbHwGetFrameBuffer();
    ScreenCursor = 0;
    
    /* Backcolor on this machine */
    if (OsLoader)
    {
        /* Black */
        BackColor = 0;
    }
    else
    {
        /* Deep blue */
#ifdef BLUE_SCREEN
        BackColor = LlbHwVideoCreateColor(14, 0, 82);
#else
        BackColor = LlbHwVideoCreateColor(0, 0, 0);
#endif
        BackColor = (BackColor << 16) | BackColor;
    }
    
    /* Screen size on this machine */
    ScreenSize = LlbHwGetScreenWidth() * LlbHwGetScreenHeight();
    
    /* Clear the screen with the given color */
    for (p = 0; p < ScreenSize * 2; p += 4)
    {
        *(PULONG)((PCHAR)VideoBuffer + p) = BackColor;
    }
}

Generated on Sun May 27 2012 04:47:17 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.