VirtualBox

Changeset 55358 in vbox for trunk


Ignore:
Timestamp:
Apr 21, 2015 3:53:01 PM (10 years ago)
Author:
vboxsync
Message:

Additions/x11/vboxvideo: move dirty rectangle handler initialisation into the main source file.

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

Legend:

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

    r55354 r55358  
    9898/* #define DPMS_SERVER
    9999#include "extensions/dpms.h" */
     100
     101/* ShadowFB support */
     102#include "shadowfb.h"
    100103
    101104/* VGA hardware functions for setting and restoring text mode */
     
    12711274    vbox_open (pScrn, pScreen, pVBox);
    12721275    vboxEnableVbva(pScrn);
     1276    /* Set up the dirty rectangle handler.  It will be added into a function
     1277     * chain and gets removed when the screen is cleaned up. */
     1278    if (ShadowFBInit2(pScreen, NULL, vbvxHandleDirtyRect) != TRUE)
     1279        return FALSE;
    12731280    VBoxInitialiseSizeHints(pScrn);
    12741281
  • trunk/src/VBox/Additions/x11/vboxvideo/vboxvideo.h

    r55332 r55358  
    286286extern void vbox_close (ScrnInfoPtr pScrn, VBOXPtr pVBox);
    287287
     288/* vbva.c */
     289extern void vbvxHandleDirtyRect(ScrnInfoPtr pScrn, int iRects, BoxPtr aRects);
    288290extern Bool vboxEnableVbva(ScrnInfoPtr pScrn);
    289291extern void vboxDisableVbva(ScrnInfoPtr pScrn);
  • trunk/src/VBox/Additions/x11/vboxvideo/vbva.c

    r55357 r55358  
    5151 *                rectangles
    5252 */
    53 static void
    54 vboxHandleDirtyRect(ScrnInfoPtr pScrn, int iRects, BoxPtr aRects)
     53void vbvxHandleDirtyRect(ScrnInfoPtr pScrn, int iRects, BoxPtr aRects)
    5554{
    5655    VBVACMDHDR cmdHdr;
     
    135134        return FALSE;
    136135    }
    137 
    138     /* Set up the dirty rectangle handler.  It will be added into a function
    139      * chain and gets removed when the screen is cleaned up. */
    140     if (ShadowFBInit2(pScreen, NULL, vboxHandleDirtyRect) != TRUE)
    141     {
    142         xf86DrvMsg(scrnIndex, X_ERROR,
    143                    "Unable to install dirty rectangle handler for VirtualBox graphics acceleration.\n");
    144         return FALSE;
    145     }
    146136    return TRUE;
    147137}
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