Changeset 8323 in vbox for trunk/src/VBox
- Timestamp:
- Apr 23, 2008 10:11:19 AM (17 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleWnd.cpp
r8322 r8323 1971 1971 * screen.height() /* display height */ 1972 1972 * QColor::numBitPlanes(); /* bit per pixel */ 1973 if (aOn && (availBits < usedBits)) 1973 CGuest guest = console->console().GetGuest(); 1974 ULONG maxWidth = guest.GetMaxGuestWidth(); 1975 ULONG maxHeight = guest.GetMaxGuestHeight(); 1976 if (aOn && ( (availBits < usedBits) 1977 || ((maxWidth != 0) && (maxWidth < screen.width())) 1978 || ((maxHeight != 0) && (maxHeight < screen.height())) 1979 ) 1980 ) 1974 1981 { 1975 1982 vboxProblem().cannotEnterSeamlessMode (screen.width(), -
trunk/src/VBox/Frontends/VirtualBox4/src/VBoxConsoleWnd.cpp
r8322 r8323 1994 1994 * screen.height() /* display height */ 1995 1995 * depth(); /* bit per pixel */ 1996 if (aOn && (availBits < usedBits)) 1996 CGuest guest = console->console().GetGuest(); 1997 ULONG maxWidth = guest.GetMaxGuestWidth(); 1998 ULONG maxHeight = guest.GetMaxGuestHeight(); 1999 if (aOn && ( (availBits < usedBits) 2000 || ((maxWidth != 0) && (maxWidth < screen.width())) 2001 || ((maxHeight != 0) && (maxHeight < screen.height())) 2002 ) 2003 ) 1997 2004 { 1998 2005 vboxProblem().cannotEnterSeamlessMode (screen.width(), -
trunk/src/VBox/Main/GuestImpl.cpp
r8312 r8323 161 161 } 162 162 163 STDMETHODIMP 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 178 STDMETHODIMP 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 163 193 STDMETHODIMP Guest::COMGETTER(SupportsSeamless) (BOOL *aSupportsSeamless) 164 194 { -
trunk/src/VBox/Main/idl/VirtualBox.xidl
r8155 r8323 5184 5184 <interface 5185 5185 name="IGuest" extends="$unknown" 5186 uuid=" d8556fca-81bc-12af-fca3-365528fa38ca"5186 uuid="655f0f7f-a35b-4e2f-a728-175d7e18dcce" 5187 5187 5188 5188 wsmap="suppress" … … 5227 5227 the version might be refused by VirtualBox (incompatible) or 5228 5228 other failures occured. 5229 </desc> 5230 </attribute> 5231 5232 <attribute name="maxGuestWidth" type="unsigned long" readonly="yes"> 5233 <desc> 5234 The maximum horizontal resolution currently supported by the 5235 Guest Additions for the purpose of host-initiated resiing 5236 (and fullscreen and seamless). A value of zero means no 5237 arbitrary maximum other than that imposed by VRAM limits. 5238 </desc> 5239 </attribute> 5240 5241 <attribute name="maxGuestHeight" type="unsigned long" readonly="yes"> 5242 <desc> 5243 The maximum vertical resolution currently supported by the 5244 Guest Additions for the purpose of host-initiated resiing 5245 (and fullscreen and seamless). A value of zero means no 5246 arbitrary maximum other than that imposed by VRAM limits. 5229 5247 </desc> 5230 5248 </attribute> -
trunk/src/VBox/Main/include/GuestImpl.h
r8312 r8323 61 61 STDMETHOD(COMGETTER(AdditionsActive)) (BOOL *aAdditionsActive); 62 62 STDMETHOD(COMGETTER(AdditionsVersion)) (BSTR *aAdditionsVersion); 63 STDMETHOD(COMGETTER(MaxGuestWidth)) (ULONG *aMaxWidth); 64 STDMETHOD(COMGETTER(MaxGuestHeight)) (ULONG *aMaxHeight); 63 65 STDMETHOD(COMGETTER(SupportsSeamless)) (BOOL *aSupportsSeamless); 64 66 STDMETHOD(COMGETTER(SupportsGraphics)) (BOOL *aSupportsGraphics);
Note:
See TracChangeset
for help on using the changeset viewer.