Changeset 63221 in vbox for trunk/src/VBox/Additions
- Timestamp:
- Aug 9, 2016 4:13:14 PM (8 years ago)
- Location:
- trunk/src/VBox/Additions/x11
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/x11/vboxmouse/vboxmouse.c
r62530 r63221 103 103 { 104 104 CARD8 map[2] = { 0, 1 }; 105 #if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 7 105 106 Atom axis_labels[2] = { 0, 0 }; 106 107 Atom button_labels[2] = { 0, 0 }; 108 #endif 107 109 if (!InitPointerDeviceStruct((DevicePtr)device, map, 2, 108 110 #if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 7 -
trunk/src/VBox/Additions/x11/vboxvideo/edid.c
r62530 r63221 143 143 Bool VBOXEDIDSet(xf86OutputPtr output, DisplayModePtr pmode) 144 144 { 145 int i, j;146 145 unsigned char *pch, *pchEDID; 147 146 xf86MonPtr pEDIDMon; -
trunk/src/VBox/Additions/x11/vboxvideo/getmode.c
r62530 r63221 125 125 void vboxAddModes(ScrnInfoPtr pScrn) 126 126 { 127 unsigned cx = 0, cy = 0, cIndex = 0; 127 unsigned cx = 0; 128 unsigned cy = 0; 128 129 unsigned i; 129 130 DisplayModePtr pMode; … … 237 238 static void acpiEventHandler(int fd, void *pvData) 238 239 { 239 ScreenPtr pScreen = (ScreenPtr)pvData;240 VBOXPtr pVBox = VBOXGetRec(xf86Screens[pScreen->myNum]);241 240 struct input_event event; 242 241 ssize_t rc; 242 RT_NOREF(pvData); 243 243 244 244 do -
trunk/src/VBox/Additions/x11/vboxvideo/pointer.c
r62530 r63221 128 128 { 129 129 int rc; 130 RT_NOREF(pScrn); 130 131 131 132 rc = VBoxHGSMIUpdatePointerShape(&pVBox->guestCtx, 0, 0, 0, 0, 0, NULL, 0); … … 137 138 { 138 139 int rc; 140 RT_NOREF(pScrn); 139 141 140 142 if (!pVBox->fUseHardwareCursor) … … 152 154 struct vboxCursorImage *pImage; 153 155 pImage = (struct vboxCursorImage *)pvImage; 156 RT_NOREF(pScrn); 154 157 155 158 #ifdef DEBUG_POINTER … … 211 214 ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum]; 212 215 VBOXPtr pVBox = pScrn->driverPrivate; 216 RT_NOREF(pCurs); 213 217 return pVBox->fUseHardwareCursor; 214 218 } -
trunk/src/VBox/Additions/x11/vboxvideo/vboxvideo.c
r62530 r63221 116 116 static void VBOXLeaveVT(ScrnInfoPtr pScrn); 117 117 static Bool VBOXCloseScreen(ScreenPtr pScreen); 118 #ifndef VBOXVIDEO_13 118 119 static Bool VBOXSaveScreen(ScreenPtr pScreen, int mode); 120 #endif 119 121 static Bool VBOXSwitchMode(ScrnInfoPtr pScrn, DisplayModePtr pMode); 120 122 static void VBOXAdjustFrame(ScrnInfoPtr pScrn, int x, int y); 121 123 static void VBOXFreeScreen(ScrnInfoPtr pScrn); 122 static void VBOXDisplayPowerManagementSet(ScrnInfoPtr pScrn, int mode, 123 int flags); 124 #ifndef VBOXVIDEO_13 125 static void VBOXDisplayPowerManagementSet(ScrnInfoPtr pScrn, int mode, int flags); 126 #endif 124 127 125 128 /* locally used functions */ … … 290 293 } 291 294 292 /** Set a video mode to the hardware, RandR 1.1 version. Since we no longer do 293 * virtual frame buffers, adjust the screen pixmap dimensions to match. The 294 * "override" parameters are for when we received a mode hint while switched to 295 * a virtual terminal. In this case VBoxClient will have told us about the 296 * mode, but not yet been able to do a mode switch using RandR. We solve this 297 * by setting the requested mode to the host but keeping the virtual frame- 295 #ifndef VBOXVIDEO_13 296 /** Set a video mode to the hardware, RandR 1.1 version. 297 * 298 * Since we no longer do virtual frame buffers, adjust the screen pixmap 299 * dimensions to match. The "override" parameters are for when we received a 300 * mode hint while switched to a virtual terminal. In this case VBoxClient will 301 * have told us about the mode, but not yet been able to do a mode switch using 302 * RandR. We solve this by setting the requested mode to the host but keeping 303 * the virtual frame- 298 304 * buffer matching what the X server expects. */ 299 305 static void setModeRandR11(ScrnInfoPtr pScrn, DisplayModePtr pMode, bool fScreenInitTime, bool fEnterVTTime, … … 332 338 pScrn->currentMode = pMode; 333 339 } 340 #endif 334 341 335 342 #ifdef VBOXVIDEO_13 … … 552 559 vbox_output_get_modes (xf86OutputPtr output) 553 560 { 554 unsigned cIndex = 0;555 561 DisplayModePtr pModes = NULL; 556 562 DisplayModePtr pPreferred = NULL; … … 636 642 { 637 643 static Bool Initialised = FALSE; 644 RT_NOREF(Options, ErrorMinor); 638 645 639 646 if (!Initialised) … … 666 673 VBOXAvailableOptions(int chipid, int busid) 667 674 { 675 RT_NOREF(chipid, busid); 668 676 return (VBOXOptions); 669 677 } … … 672 680 VBOXIdentify(int flags) 673 681 { 682 RT_NOREF(flags); 674 683 xf86PrintChipsets(VBOX_NAME, "guest driver for VirtualBox", VBOXChipsets); 675 684 } … … 677 686 #ifndef XF86_SCRN_INTERFACE 678 687 # define SCRNINDEXAPI(pfn) pfn ## Index 679 static Bool VBOXScreenInitIndex(int scrnIndex, ScreenPtr pScreen, int argc, 680 char **argv) 681 { return VBOXScreenInit(pScreen, argc, argv); } 688 static Bool VBOXScreenInitIndex(int scrnIndex, ScreenPtr pScreen, int argc, char **argv) 689 { 690 RT_NOREF(scrnIndex); 691 return VBOXScreenInit(pScreen, argc, argv); 692 } 682 693 683 694 static Bool VBOXEnterVTIndex(int scrnIndex, int flags) … … 996 1007 { 997 1008 VBOXPtr pVBox = VBOXGetRec(pScrn); 998 size_t cData;999 int32_t *paData;1000 int rc;1001 1009 1002 1010 if (!pVBox->fHaveHGSMIModeHints) … … 1030 1038 static void setSizesAndCursorIntegration(ScrnInfoPtr pScrn, bool fScreenInitTime) 1031 1039 { 1032 VBOXPtr pVBox = VBOXGetRec(pScrn);1033 1034 1040 TRACE_LOG("fScreenInitTime=%d\n", (int)fScreenInitTime); 1035 1041 #ifdef VBOXVIDEO_13 … … 1054 1060 { 1055 1061 ScrnInfoPtr pScrn = (ScrnInfoPtr)pData; 1056 VBOXPtr pVBox = VBOXGetRec(pScrn);1057 1062 bool fNeedUpdate = false; 1058 1063 … … 1084 1089 VBOXPtr pVBox = VBOXGetRec(pScrn); 1085 1090 VisualPtr visual; 1091 RT_NOREF(argc, argv); 1086 1092 1087 1093 TRACE_ENTRY(); … … 1208 1214 return FALSE; 1209 1215 } 1210 #else 1216 #else /* !VBOXVIDEO_13 */ 1211 1217 /* set first video mode */ 1212 1218 setModeRandR11(pScrn, pScrn->currentMode, true, false, 0, 0); 1213 #endif 1219 #endif /* !VBOXVIDEO_13 */ 1214 1220 1215 1221 /* Say that we support graphics. */ … … 1287 1293 static void VBOXLeaveVT(ScrnInfoPtr pScrn) 1288 1294 { 1289 VBOXPtr pVBox = VBOXGetRec(pScrn);1290 1295 #ifdef VBOXVIDEO_13 1296 VBOXPtr pVBox = VBOXGetRec(pScrn); 1291 1297 unsigned i; 1292 1298 #else … … 1422 1428 } 1423 1429 1430 #ifndef VBOXVIDEO_13 1424 1431 static Bool 1425 1432 VBOXSaveScreen(ScreenPtr pScreen, int mode) … … 1428 1435 return TRUE; 1429 1436 } 1437 #endif 1430 1438 1431 1439 void … … 1462 1470 } 1463 1471 1472 #ifndef VBOXVIDEO_13 1464 1473 static void 1465 VBOXDisplayPowerManagementSet(ScrnInfoPtr pScrn, int mode, 1466 int flags) 1474 VBOXDisplayPowerManagementSet(ScrnInfoPtr pScrn, int mode, int flags) 1467 1475 { 1468 1476 (void)pScrn; (void)mode; (void) flags; 1469 1477 } 1478 #endif
Note:
See TracChangeset
for help on using the changeset viewer.