VirtualBox

Changeset 43743 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Oct 25, 2012 3:22:07 PM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
81647
Message:

FE/Qt: 6414: Accepting video-mode size-hint if machine-view is not yet assigned to frame-buffer

File:
1 edited

Legend:

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

    r41216 r43743  
    196196    LogFlowThisFunc(("width=%lu, height=%lu, BPP=%lu\n",
    197197                    (unsigned long)uWidth, (unsigned long)uHeight, (unsigned long)uBPP));
     198
    198199    if (!pbSupported)
    199200        return E_POINTER;
    200201    *pbSupported = TRUE;
     202
     203    if (!m_pMachineView)
     204        return S_OK;
    201205    QSize screen = m_pMachineView->maxGuestSize();
    202206    if (   (screen.width() != 0)
     
    210214    LogFlowThisFunc(("screenW=%lu, screenH=%lu -> aSupported=%s\n",
    211215                    screen.width(), screen.height(), *pbSupported ? "TRUE" : "FALSE"));
     216
    212217    return S_OK;
    213218}
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