Changeset 53773 in vbox for trunk/src/VBox/Additions/x11/vboxvideo
- Timestamp:
- Jan 12, 2015 2:37:03 PM (10 years ago)
- Location:
- trunk/src/VBox/Additions/x11/vboxvideo
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/x11/vboxvideo/helpers.c
r53770 r53773 3 3 * VirtualBox X11 Additions graphics driver X server helper functions 4 4 * 5 * This file contains helpers which call back into the X server, but which are 6 * expected to use server ABIs which remain constant across all supported server 7 * versions. The longer-term idea is to eliminate X server version dependencies 8 * in as many files as possible inside the driver code. Most files should not 9 * directly depend on X server symbols at all, and a single build of this one 10 * should work in all server versions. 5 * This file contains helpers which call back into the X server. The longer- 6 * term idea is to eliminate X server version dependencies in as many files as 7 * possible inside the driver code. Ideally most files should not directly 8 * depend on X server symbols at all. 11 9 */ 12 10 … … 44 42 FatalError("Assertion"); 45 43 } 44 45 VBOXPtr vbvxGetRec(ScrnInfoPtr pScrn) 46 { 47 return ((VBOXPtr)pScrn->driverPrivate); 48 } -
trunk/src/VBox/Additions/x11/vboxvideo/vboxvideo.h
r53770 r53773 237 237 extern void vbvxMsgV(const char *pszFormat, va_list args); 238 238 extern void vbvxAbortServer(void); 239 extern VBOXPtr vbvxGetRec(ScrnInfoPtr pScrn); 240 #define VBOXGetRec vbvxGetRec /* Temporary */ 239 241 240 242 /* setmode.c */ … … 275 277 /* Utilities */ 276 278 277 static inline VBOXPtr VBOXGetRec(ScrnInfoPtr pScrn)278 {279 return ((VBOXPtr)pScrn->driverPrivate);280 }281 282 279 /** Calculate the BPP from the screen depth */ 283 280 static inline uint16_t vboxBPP(ScrnInfoPtr pScrn)
Note:
See TracChangeset
for help on using the changeset viewer.