VirtualBox

Changeset 43760 in vbox


Ignore:
Timestamp:
Oct 26, 2012 3:52:17 PM (12 years ago)
Author:
vboxsync
Message:

FE/Qt: Trying to fix mac framebuffer issue for null guest resize events
again.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIFrameBufferQuartz2D.cpp

    r43159 r43760  
    435435    else
    436436    {
     437        /* Main (IDisplay) sending guest resize-event thinks that
     438         * width and/or height can be zero (0) if this frame-buffer is hidden,
     439         * we should just do a fallback to initial blackout
     440         * frame-buffer of 640x480 size (like we are doing for QImage frame-buffer): */
     441        if (m_width == 0 || m_height == 0)
     442        {
     443            m_width = 640;
     444            m_height = 480;
     445        }
    437446        m_fUsesGuestVRAM = false;
    438447        remind = true;
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.cpp

    r43758 r43760  
    918918        return true;
    919919
    920     /* We should not process resize-event if parent window is hidden: */
    921     if (!uisession()->isScreenVisible(m_uScreenId))
    922         return true;
    923 
    924920    /* Get guest resize-event: */
    925921    UIResizeEvent *pResizeEvent = static_cast<UIResizeEvent*>(pEvent);
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