VirtualBox

Ignore:
Timestamp:
Mar 12, 2008 4:13:27 PM (17 years ago)
Author:
vboxsync
Message:

Additions/x11: set the graphics capability correctly for X.org 1.3 and 1.4

File:
1 edited

Legend:

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

    r7274 r7440  
    1616
    1717#include <VBox/VBoxGuest.h>
     18#include <VBox/VBoxDev.h>
    1819
    1920#include <xf86Pci.h>
     
    823824
    824825/**
     826 * Inform VBox that we are aware of advanced graphics functions
     827 * (i.e. dynamic resizing, seamless).
     828 *
     829 * @returns TRUE for success, FALSE for failure
     830 */
     831Bool
     832vboxEnableGraphicsCap(void)
     833{
     834    return RT_SUCCESS(VbglR3SetGuestCaps(VMMDEV_GUEST_SUPPORTS_GRAPHICS, 0));
     835}
     836
     837/**
     838 * Inform VBox that we are no longer aware of advanced graphics functions
     839 * (i.e. dynamic resizing, seamless).
     840 *
     841 * @returns TRUE for success, FALSE for failure
     842 */
     843Bool
     844vboxDisableGraphicsCap(void)
     845{
     846    return RT_SUCCESS(VbglR3SetGuestCaps(0, VMMDEV_GUEST_SUPPORTS_GRAPHICS));
     847}
     848
     849/**
    825850 * Query the last display change request.
    826851 *
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