VirtualBox

Changeset 8385 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Apr 25, 2008 1:35:00 PM (17 years ago)
Author:
vboxsync
Message:

Adjust required VRAM size computation to work with X11 guests.

File:
1 edited

Legend:

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

    r8363 r8385  
    19741974        LONG maxWidth  = guest.GetMaxGuestWidth();
    19751975        LONG maxHeight = guest.GetMaxGuestHeight();
     1976        /** @todo this implements the correct size computation for X11 guests.
     1977         * Using a less wasteful approach than using a square region would be
     1978         * appreciated, but this has to reflect what the guest additions do. */
     1979        if (maxWidth || maxHeight)
     1980            usedBits = RT_MAX(usedBits, (  RT_MAX(screen.width(), screen.height())
     1981                                         * RT_MAX(screen.width(), screen.height())
     1982                                         * guestBpp
     1983                                         + _1M * 8) /* current cache per screen - may be changed in future */
     1984                                        * csession.GetMachine().GetMonitorCount() /**< @todo fix assumption that all screens have same resolution */
     1985                                        + 4096 * 8); /* adapter info */
     1986
    19761987        if (aOn && (   (availBits < usedBits)
    19771988                    || ((maxWidth != 0) && (maxWidth < screen.width()))
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