VirtualBox

Changeset 22085 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
Aug 7, 2009 8:17:53 PM (15 years ago)
Author:
vboxsync
Message:

Additions/x11/vboxvideo_13: merge back vboxvideo_15 parts of r32186: Additions/x11: use the guest/host registry to save the last resolution on machine shutdown and to restore it at startup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/x11/vboxvideo/vboxvideo_13.c

    r22084 r22085  
    5555# define DEBUG_VIDEO 1
    5656#endif
     57
    5758#ifdef DEBUG_VIDEO
    5859
     
    116117static const OptionInfoRec * VBOXAvailableOptions(int chipid, int busid);
    117118static void VBOXIdentify(int flags);
     119#ifndef PCIACCESS
    118120static Bool VBOXProbe(DriverPtr drv, int flags);
    119 #ifdef PCIACCESS
     121#else
    120122static Bool VBOXPciProbe(DriverPtr drv, int entity_num,
    121123     struct pci_device *dev, intptr_t match_data);
     
    387389    if (   !(mode->type & M_T_USERDEF)
    388390        && vbox_device_available(VBOXGetRec(pScrn))
    389         && !vboxHostLikesVideoMode(pScrn, mode->HDisplay,
    390                                    mode->VDisplay, pScrn->bitsPerPixel)
     391        && !vboxHostLikesVideoMode(pScrn, mode->HDisplay, mode->VDisplay,
     392                                   pScrn->bitsPerPixel)
    391393       )
    392394        rc = MODE_BAD;
     
    458460        uint32_t x, y, bpp, display;
    459461        rc = vboxGetDisplayChangeRequest(pScrn, &x, &y, &bpp, &display);
    460         /** @todo - check the display number once we support multiple displays. */
     462        /* @todo - check the display number once we support multiple displays. */
    461463        /* If we don't find a display request, see if we have a saved hint
    462464         * from a previous session. */
    463         if (rc)
    464             TRACE3("Got a display change request for %dx%d\n", x, y);
    465465        if (!rc || (0 == x) || (0 == y))
    466         {
    467466            rc = vboxRetrieveVideoMode(pScrn, &x, &y, &bpp);
    468             if (rc)
    469                 TRACE3("Retrieved a video mode of %dx%d\n", x, y);
    470         }
    471467        if (rc && (0 != x) && (0 != y)) {
    472468            /* We prefer a slightly smaller size to a slightly larger one */
     
    666662#endif
    667663
     664#ifndef PCIACCESS
    668665static Bool
    669666VBOXProbe(DriverPtr drv, int flags)
     
    681678        return (FALSE);
    682679
    683 #ifndef PCIACCESS
    684680    /* PCI BUS */
    685681    if (xf86GetPciVideoInfo()) {
     
    720716        }
    721717    }
     718
     719    xfree(devSections);
     720
     721    return (foundScreen);
     722}
    722723#endif
    723 
    724     xfree(devSections);
    725 
    726     return (foundScreen);
    727 }
    728724
    729725/*
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