VirtualBox

Changeset 7759 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Apr 5, 2008 11:36:02 AM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
29306
Message:

The BIOS logo stuff moved to VGA device. Added 24bpp bitmaps support.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/ConsoleImpl2.cpp

    r7556 r7759  
    292292
    293293    /*
    294      * BIOS logo
    295      */
    296     BOOL fFadeIn;
    297     hrc = biosSettings->COMGETTER(LogoFadeIn)(&fFadeIn);                            H();
    298     rc = CFGMR3InsertInteger(pBiosCfg,  "FadeIn",  fFadeIn ? 1 : 0);                RC_CHECK();
    299     BOOL fFadeOut;
    300     hrc = biosSettings->COMGETTER(LogoFadeOut)(&fFadeOut);                          H();
    301     rc = CFGMR3InsertInteger(pBiosCfg,  "FadeOut", fFadeOut ? 1: 0);                RC_CHECK();
    302     ULONG logoDisplayTime;
    303     hrc = biosSettings->COMGETTER(LogoDisplayTime)(&logoDisplayTime);               H();
    304     rc = CFGMR3InsertInteger(pBiosCfg,  "LogoTime", logoDisplayTime);               RC_CHECK();
    305     Bstr logoImagePath;
    306     hrc = biosSettings->COMGETTER(LogoImagePath)(logoImagePath.asOutParam());       H();
    307     rc = CFGMR3InsertString(pBiosCfg,   "LogoFile", logoImagePath ? Utf8Str(logoImagePath) : ""); RC_CHECK();
    308 
    309     /*
    310      * Boot menu
    311      */
    312     BIOSBootMenuMode_T bootMenuMode;
    313     int value;
    314     biosSettings->COMGETTER(BootMenuMode)(&bootMenuMode);
    315     switch (bootMenuMode)
    316     {
    317         case BIOSBootMenuMode_Disabled:
    318             value = 0;
    319             break;
    320         case BIOSBootMenuMode_MenuOnly:
    321             value = 1;
    322             break;
    323         default:
    324             value = 2;
    325     }
    326     rc = CFGMR3InsertInteger(pBiosCfg, "ShowBootMenu", value);                      RC_CHECK();
    327 
    328     /*
    329294     * The time offset
    330295     */
     
    533498    hrc = pMachine->COMGETTER(VRAMSize)(&cRamMBs);                                  H();
    534499    rc = CFGMR3InsertInteger(pCfg,  "VRamSize",             cRamMBs * _1M);         RC_CHECK();
     500
     501    /*
     502     * BIOS logo
     503     */
     504    BOOL fFadeIn;
     505    hrc = biosSettings->COMGETTER(LogoFadeIn)(&fFadeIn);                            H();
     506    rc = CFGMR3InsertInteger(pCfg,  "FadeIn",  fFadeIn ? 1 : 0);                RC_CHECK();
     507    BOOL fFadeOut;
     508    hrc = biosSettings->COMGETTER(LogoFadeOut)(&fFadeOut);                          H();
     509    rc = CFGMR3InsertInteger(pCfg,  "FadeOut", fFadeOut ? 1: 0);                RC_CHECK();
     510    ULONG logoDisplayTime;
     511    hrc = biosSettings->COMGETTER(LogoDisplayTime)(&logoDisplayTime);               H();
     512    rc = CFGMR3InsertInteger(pCfg,  "LogoTime", logoDisplayTime);               RC_CHECK();
     513    Bstr logoImagePath;
     514    hrc = biosSettings->COMGETTER(LogoImagePath)(logoImagePath.asOutParam());       H();
     515    rc = CFGMR3InsertString(pCfg,   "LogoFile", logoImagePath ? Utf8Str(logoImagePath) : ""); RC_CHECK();
     516
     517    /*
     518     * Boot menu
     519     */
     520    BIOSBootMenuMode_T bootMenuMode;
     521    int value;
     522    biosSettings->COMGETTER(BootMenuMode)(&bootMenuMode);
     523    switch (bootMenuMode)
     524    {
     525        case BIOSBootMenuMode_Disabled:
     526            value = 0;
     527            break;
     528        case BIOSBootMenuMode_MenuOnly:
     529            value = 1;
     530            break;
     531        default:
     532            value = 2;
     533    }
     534    rc = CFGMR3InsertInteger(pCfg, "ShowBootMenu", value);                      RC_CHECK();
    535535
    536536    /* Custom VESA mode list */
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette