VirtualBox

Changeset 884 in vbox for trunk


Ignore:
Timestamp:
Feb 13, 2007 5:45:45 PM (18 years ago)
Author:
vboxsync
Message:

Linux additions: If the use did not specify any mode then use a default resolution of 1024x768. Otherwise the largest mode which fits into the video memory is used (which is probably be much bigger than the current screen size).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/xgraphics/vboxvideo.c

    r1 r884  
    509509    xf86SetGamma(pScrn, gzeros);
    510510
     511    /* If no modes where specified for this display, add a default mode */
     512    if (!pScrn->display->modes || !*pScrn->display->modes)
     513    {
     514        if ((pScrn->display->modes = xnfalloc(2 * sizeof(char*))))
     515        {
     516            pScrn->display->modes[0] = "1024x768";
     517            pScrn->display->modes[1] = NULL;
     518        }
     519    }
     520
    511521    /* Filter out video modes not supported by the virtual hardware
    512522       we described.  All modes used by the Windows additions should
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