VirtualBox

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


Ignore:
Timestamp:
Oct 12, 2017 6:18:01 PM (7 years ago)
Author:
vboxsync
Message:

Additions/x11/vboxvideo: use X.Org Bool rather than C++ bool.
bugref:9017: Additions/x11: put vboxvideo into upstream X.Org

Location:
trunk/src/VBox/Additions/x11/vboxvideo
Files:
5 edited

Legend:

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

    r69058 r69064  
    175175}
    176176
    177 static bool useHardwareCursor(uint32_t fCursorCapabilities)
     177static Bool useHardwareCursor(uint32_t fCursorCapabilities)
    178178{
    179179    if (fCursorCapabilities & VBOX_VBVA_CURSOR_CAPABILITY_HARDWARE)
     
    182182}
    183183
    184 static void compareAndMaybeSetUseHardwareCursor(VBOXPtr pVBox, uint32_t fCursorCapabilities, bool *pfChanged, bool fSet)
     184static void compareAndMaybeSetUseHardwareCursor(VBOXPtr pVBox, uint32_t fCursorCapabilities, Bool *pfChanged, Bool fSet)
    185185{
    186186    if (pVBox->fUseHardwareCursor != useHardwareCursor(fCursorCapabilities))
     
    202202/** Read in information about the most recent size hints and cursor
    203203 * capabilities requested for the guest screens from HGSMI. */
    204 void vbvxReadSizesAndCursorIntegrationFromHGSMI(ScrnInfoPtr pScrn, bool *pfNeedUpdate)
     204void vbvxReadSizesAndCursorIntegrationFromHGSMI(ScrnInfoPtr pScrn, Bool *pfNeedUpdate)
    205205{
    206206    VBOXPtr pVBox = VBOXGetRec(pScrn);
    207207    int rc;
    208208    unsigned i;
    209     bool fChanged = false;
     209    Bool fChanged = false;
    210210    uint32_t fCursorCapabilities;
    211211
  • trunk/src/VBox/Additions/x11/vboxvideo/setmode.c

    r69058 r69064  
    8585 * mode set and tell the host we support advanced graphics functions.
    8686 */
    87 void vbvxSetMode(ScrnInfoPtr pScrn, unsigned cDisplay, unsigned cWidth, unsigned cHeight, int x, int y, bool fEnabled,
    88                  bool fConnected, struct vbvxFrameBuffer *pFrameBuffer)
     87void vbvxSetMode(ScrnInfoPtr pScrn, unsigned cDisplay, unsigned cWidth, unsigned cHeight, int x, int y, Bool fEnabled,
     88                 Bool fConnected, struct vbvxFrameBuffer *pFrameBuffer)
    8989{
    9090    VBOXPtr pVBox = VBOXGetRec(pScrn);
     
    9292    uint16_t fFlags;
    9393    int rc;
    94     bool fEnabledAndVisible = fEnabled && x + cWidth <= pFrameBuffer->cWidth && y + cHeight <= pFrameBuffer->cHeight;
     94    Bool fEnabledAndVisible = fEnabled && x + cWidth <= pFrameBuffer->cWidth && y + cHeight <= pFrameBuffer->cHeight;
    9595    /* Recent host code has a flag to blank the screen; older code needs BPP set to zero. */
    9696    uint32_t cBPP = fEnabledAndVisible || pVBox->fHostHasScreenBlankingFlag ? pFrameBuffer->cBPP : 0;
  • trunk/src/VBox/Additions/x11/vboxvideo/vboxvideo.c

    r69058 r69064  
    117117static void VBOXSaveMode(ScrnInfoPtr pScrn);
    118118static void VBOXRestoreMode(ScrnInfoPtr pScrn);
    119 static void setSizesAndCursorIntegration(ScrnInfoPtr pScrn, bool fScreenInitTime);
     119static void setSizesAndCursorIntegration(ScrnInfoPtr pScrn, Bool fScreenInitTime);
    120120
    121121#ifndef XF86_SCRN_INTERFACE
     
    289289 * the virtual frame-
    290290 * buffer matching what the X server expects. */
    291 static void setModeRandR11(ScrnInfoPtr pScrn, DisplayModePtr pMode, bool fScreenInitTime, bool fEnterVTTime,
     291static void setModeRandR11(ScrnInfoPtr pScrn, DisplayModePtr pMode, Bool fScreenInitTime, Bool fEnterVTTime,
    292292                           int cXOverRide, int cYOverRide)
    293293{
     
    10311031#endif
    10321032
    1033 static void setSizesAndCursorIntegration(ScrnInfoPtr pScrn, bool fScreenInitTime)
     1033static void setSizesAndCursorIntegration(ScrnInfoPtr pScrn, Bool fScreenInitTime)
    10341034{
    10351035    RT_NOREF(fScreenInitTime);
     
    10561056{
    10571057    ScrnInfoPtr pScrn = (ScrnInfoPtr)pData;
    1058     bool fNeedUpdate = false;
     1058    Bool fNeedUpdate = false;
    10591059
    10601060    (void)pTimeout;
  • trunk/src/VBox/Additions/x11/vboxvideo/vboxvideo.h

    r69058 r69064  
    162162    unsigned long cbView;
    163163    /** Whether the pre-X-server mode was a VBE mode */
    164     bool fSavedVBEMode;
     164    Bool fSavedVBEMode;
    165165    /** Paramters of the saved pre-X-server VBE mode, invalid if there is none
    166166     */
     
    179179    struct VBoxScreen *pScreens;
    180180    /** Can we get mode hint and cursor integration information from HGSMI? */
    181     bool fHaveHGSMIModeHints;
     181    Bool fHaveHGSMIModeHints;
    182182    /** Does the host support the screen blanking flag? */
    183     bool fHostHasScreenBlankingFlag;
     183    Bool fHostHasScreenBlankingFlag;
    184184    /** Array of structures for receiving mode hints. */
    185185    VBVAMODEHINT *paVBVAModeHints;
     
    226226
    227227extern void vbvxClearVRAM(ScrnInfoPtr pScrn, size_t cbOldSize, size_t cbNewSize);
    228 extern void vbvxSetMode(ScrnInfoPtr pScrn, unsigned cDisplay, unsigned cWidth, unsigned cHeight, int x, int y, bool fEnabled,
    229                         bool fConnected, struct vbvxFrameBuffer *pFrameBuffer);
     228extern void vbvxSetMode(ScrnInfoPtr pScrn, unsigned cDisplay, unsigned cWidth, unsigned cHeight, int x, int y, Bool fEnabled,
     229                        Bool fConnected, struct vbvxFrameBuffer *pFrameBuffer);
    230230extern void vbvxSetSolarisMouseRange(int width, int height);
    231231
     
    243243extern void vboxAddModes(ScrnInfoPtr pScrn);
    244244extern void VBoxInitialiseSizeHints(ScrnInfoPtr pScrn);
    245 extern void vbvxReadSizesAndCursorIntegrationFromProperties(ScrnInfoPtr pScrn, bool *pfNeedUpdate);
    246 extern void vbvxReadSizesAndCursorIntegrationFromHGSMI(ScrnInfoPtr pScrn, bool *pfNeedUpdate);
     245extern void vbvxReadSizesAndCursorIntegrationFromProperties(ScrnInfoPtr pScrn, Bool *pfNeedUpdate);
     246extern void vbvxReadSizesAndCursorIntegrationFromHGSMI(ScrnInfoPtr pScrn, Bool *pfNeedUpdate);
    247247extern void vbvxSetUpLinuxACPI(ScreenPtr pScreen);
    248248extern void vbvxCleanUpLinuxACPI(ScreenPtr pScreen);
  • trunk/src/VBox/Additions/x11/vboxvideo/vbva.c

    r69058 r69064  
    183183}
    184184
    185 static bool haveHGSMIModeHintAndCursorReportingInterface(VBOXPtr pVBox)
     185static Bool haveHGSMIModeHintAndCursorReportingInterface(VBOXPtr pVBox)
    186186{
    187187    uint32_t fModeHintReporting, fCursorReporting;
     
    193193}
    194194
    195 static bool hostHasScreenBlankingFlag(VBOXPtr pVBox)
     195static Bool hostHasScreenBlankingFlag(VBOXPtr pVBox)
    196196{
    197197    uint32_t fScreenFlags;
     
    211211vboxEnableVbva(ScrnInfoPtr pScrn)
    212212{
    213     bool rc = TRUE;
     213    Bool rc = TRUE;
    214214    unsigned i;
    215215    VBOXPtr pVBox = pScrn->driverPrivate;
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