VirtualBox

Changeset 43761 in vbox


Ignore:
Timestamp:
Oct 26, 2012 4:30:28 PM (12 years ago)
Author:
vboxsync
Message:

FE/Qt: Another try to fix mac framebuffer issue for null guest resize
events.

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

Legend:

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

    r43760 r43761  
    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         }
    446437        m_fUsesGuestVRAM = false;
    447438        remind = true;
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.cpp

    r43760 r43761  
    928928                   || pResizeEvent->height() != frameBuffer()->height();
    929929
    930     /* Perform framebuffer resize: */
    931     frameBuffer()->resizeEvent(pResizeEvent);
    932 
    933     if (fResize)
     930    /* Perform framebuffer resize if parent window is visible: */
     931    if (uisession()->isScreenVisible(m_uScreenId))
     932        frameBuffer()->resizeEvent(pResizeEvent);
     933
     934    if (fResize && uisession()->isScreenVisible(m_uScreenId))
    934935    {
    935936        /* Reapply maximum size restriction for machine-view: */
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