VirtualBox

Changeset 28843 in vbox


Ignore:
Timestamp:
Apr 27, 2010 4:02:17 PM (15 years ago)
Author:
vboxsync
Message:

FE/Qt4: added --fullscreen switch

Location:
trunk/src/VBox/Frontends/VirtualBox/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp

    r28835 r28843  
    51605160
    51615161    bool bForceSeamless = false;
     5162    bool bForceFullscreen = false;
    51625163
    51635164    vm_render_mode_str = RTStrDup (virtualBox()
     
    52045205            bForceSeamless = true;
    52055206        }
     5207        else if (!::strcmp(arg, "-fullscreen") || !::strcmp(arg, "--fullscreen"))
     5208        {
     5209            bForceFullscreen = true;
     5210        }
    52065211#ifdef VBOX_GUI_WITH_SYSTRAY
    52075212        else if (!::strcmp (arg, "-systray") || !::strcmp (arg, "--systray"))
     
    52905295    {
    52915296        mVBox.GetMachine(vmUuid).SetExtraData(VBoxDefs::GUI_Seamless, "on");
     5297    }
     5298    else if (bForceFullscreen && !vmUuid.isEmpty())
     5299    {
     5300        mVBox.GetMachine(vmUuid).SetExtraData(VBoxDefs::GUI_Fullscreen, "on");
    52925301    }
    52935302
  • trunk/src/VBox/Frontends/VirtualBox/src/main.cpp

    r28800 r28843  
    258258            "  --startvm <vmname|UUID>    start a VM by specifying its UUID or name\n"
    259259            "  --seamless                 switch to seamless mode during startup\n"
     260            "  --fullscreen               switch to fullscreen mode during startup\n"
    260261            "  --rmode %-18s select different render mode (default is %s)\n"
    261262# ifdef VBOX_WITH_DEBUGGER_GUI
Note: See TracChangeset for help on using the changeset viewer.

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