VirtualBox

Changeset 8919 in vbox for trunk/src/VBox/Additions/x11


Ignore:
Timestamp:
May 19, 2008 3:12:38 PM (17 years ago)
Author:
vboxsync
Message:

Additions/x11: the graphics driver should not fail if the kernel driver is missing

Location:
trunk/src/VBox/Additions/x11/xgraphics
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/x11/xgraphics/vboxutils.c

    r8425 r8919  
    376376}
    377377
     378Bool
     379vbox_device_available(VBOXPtr pVBox)
     380{
     381    return pVBox->useDevice;
     382}
     383
    378384static void
    379385vbox_vmm_hide_cursor(ScrnInfoPtr pScrn, VBOXPtr pVBox)
  • trunk/src/VBox/Additions/x11/xgraphics/vboxvideo.h

    r8531 r8919  
    171171extern Bool vbox_open (ScrnInfoPtr pScrn, ScreenPtr pScreen, VBOXPtr pVBox);
    172172extern void vbox_close (ScrnInfoPtr pScrn, VBOXPtr pVBox);
     173extern Bool vbox_device_available(VBOXPtr pVBox);
    173174
    174175extern Bool vboxEnableVbva(ScrnInfoPtr pScrn);
  • trunk/src/VBox/Additions/x11/xgraphics/vboxvideo_13.c

    r8531 r8919  
    351351vbox_output_mode_valid (xf86OutputPtr output, DisplayModePtr mode)
    352352{
    353     if (vboxHostLikesVideoMode(mode->HDisplay, mode->VDisplay,
    354                                output->scrn->bitsPerPixel))
     353    if (   vboxHostLikesVideoMode(mode->HDisplay, mode->VDisplay,
     354                                  output->scrn->bitsPerPixel)
     355        || !vbox_device_available(VBOXGetRec(output->scrn))
     356       )
    355357        return MODE_OK;
    356358    else
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