VirtualBox

Changeset 8323 in vbox for trunk/src/VBox/Main/GuestImpl.cpp


Ignore:
Timestamp:
Apr 23, 2008 10:11:19 AM (17 years ago)
Author:
vboxsync
Message:

Frontends/VirtualBox3/4, Main: only switch to seamless mode if the host resolution is less than the maximum currently supported by the additions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/GuestImpl.cpp

    r8312 r8323  
    161161}
    162162
     163STDMETHODIMP Guest::COMGETTER(MaxGuestWidth) (ULONG *aMaxWidth)
     164{
     165    if (!VALID_PTR(aMaxWidth))
     166        return E_POINTER;
     167
     168    AutoCaller autoCaller (this);
     169    CheckComRCReturnRC (autoCaller.rc());
     170
     171    AutoReadLock alock (this);
     172
     173    *aMaxWidth = mData.mMaxWidth;
     174
     175    return S_OK;
     176}
     177
     178STDMETHODIMP Guest::COMGETTER(MaxGuestHeight) (ULONG *aMaxHeight)
     179{
     180    if (!VALID_PTR(aMaxHeight))
     181        return E_POINTER;
     182
     183    AutoCaller autoCaller (this);
     184    CheckComRCReturnRC (autoCaller.rc());
     185
     186    AutoReadLock alock (this);
     187
     188    *aMaxHeight = mData.mMaxHeight;
     189
     190    return S_OK;
     191}
     192
    163193STDMETHODIMP Guest::COMGETTER(SupportsSeamless) (BOOL *aSupportsSeamless)
    164194{
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