VirtualBox

Changeset 8477

Show
Ignore:
Timestamp:
04/29/08 18:47:05 (6 months ago)
Author:
vboxsync
Message:

Frontends/VirtualBox3/4: do not send resize hints when the guest does not have the graphics capability

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleWnd.cpp

    r8456 r8477  
    22352235void VBoxConsoleWnd::setViewInSeamlessMode (const QRect &aTargetRect) 
    22362236{ 
     2237        LogFlowThisFunc(("mIsSeamless=%s\n", mIsSeamless ? "true" : "false")); 
    22372238    if (mIsSeamless) 
    22382239    { 
     
    22612262                                           QSizePolicy::Preferred, QSizePolicy::Fixed); 
    22622263    } 
     2264    LogFlowFuncLeave(); 
    22632265} 
    22642266 
     
    26602662void VBoxConsoleWnd::setMask (const QRegion &aRegion) 
    26612663{ 
     2664        LogFlowFuncEnter(); 
    26622665    QRegion region = aRegion; 
    26632666    /* The global mask shift cause of toolbars and such things. */ 
     
    27312734    QMainWindow::setMask (region); 
    27322735#endif 
     2736        LogFlowFuncLeave(); 
    27332737} 
    27342738 
     
    32503254            } 
    32513255        } 
     3256        /* Disable auto-resizing if advanced graphics are not available */ 
     3257        console->setAutoresizeGuest (   mIsGraphicsSupported 
     3258                                     && vmAutoresizeGuestAction->isOn()); 
     3259        vmAutoresizeGuestAction->setEnabled (mIsGraphicsSupported); 
    32523260    } 
    32533261 
  • trunk/src/VBox/Frontends/VirtualBox4/src/VBoxConsoleWnd.cpp

    r8456 r8477  
    32953295            } 
    32963296        } 
     3297        /* Disable auto-resizing if advanced graphics are not available */ 
     3298        console->setAutoresizeGuest (   mIsGraphicsSupported 
     3299                                     && vmAutoresizeGuestAction->isChecked()); 
     3300        vmAutoresizeGuestAction->setEnabled (mIsGraphicsSupported);         
    32973301    } 
    32983302 

© 2008 Sun Microsystems, Inc.
ContactPrivacy policy