Changeset 55064 in vbox for trunk/src/VBox/Additions
- Timestamp:
- Apr 1, 2015 4:43:57 AM (10 years ago)
- svn:sync-xref-src-repo-rev:
- 99353
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/x11/vboxvideo/vboxvideo.c
r55043 r55064 150 150 static void VBOXSaveMode(ScrnInfoPtr pScrn); 151 151 static void VBOXRestoreMode(ScrnInfoPtr pScrn); 152 static void setSizesAndCursorIntegration(ScrnInfoPtr pScrn, bool f LimitedContext);152 static void setSizesAndCursorIntegration(ScrnInfoPtr pScrn, bool fScreenInitTime, bool fVTSwitchTime); 153 153 154 154 #ifndef XF86_SCRN_INTERFACE … … 1146 1146 pNewMode->HDisplay = RT_CLAMP(pVBox->pScreens[0].aPreferredSize.cx, VBOX_VIDEO_MIN_SIZE, VBOX_VIDEO_MAX_VIRTUAL); 1147 1147 pNewMode->VDisplay = RT_CLAMP(pVBox->pScreens[0].aPreferredSize.cy, VBOX_VIDEO_MIN_SIZE, VBOX_VIDEO_MAX_VIRTUAL); 1148 setModeRandR11(pScrn, p Scrn->currentMode, fLimitedContext);1149 } 1150 1151 #endif 1152 1153 static void setSizesAndCursorIntegration(ScrnInfoPtr pScrn, bool f LimitedContext)1148 setModeRandR11(pScrn, pNewMode, fLimitedContext); 1149 } 1150 1151 #endif 1152 1153 static void setSizesAndCursorIntegration(ScrnInfoPtr pScrn, bool fScreenInitTime, bool fVTSwitchTime) 1154 1154 { 1155 1155 VBOXPtr pVBox = VBOXGetRec(pScrn); 1156 1156 1157 TRACE_LOG("f LimitedContext=%d\n", fLimitedContext);1157 TRACE_LOG("fScreenInitTime=%d, fVTSwitchTime=%d\n", (int)fScreenInitTime, (int)fVTSwitchTime); 1158 1158 #ifdef VBOXVIDEO_13 1159 setSizesRandR12(pScrn, f LimitedContext);1159 setSizesRandR12(pScrn, fScreenInitTime); 1160 1160 #else 1161 setSizesRandR11(pScrn, f LimitedContext);1162 #endif 1163 if (!f LimitedContext)1161 setSizesRandR11(pScrn, fScreenInitTime); 1162 #endif 1163 if (!fVTSwitchTime) 1164 1164 vbvxReprobeCursor(pScrn); 1165 1165 } … … 1183 1183 vbvxReadSizesAndCursorIntegrationFromProperties(pScrn, &fNeedUpdate); 1184 1184 if (fNeedUpdate) 1185 setSizesAndCursorIntegration(pScrn, false );1185 setSizesAndCursorIntegration(pScrn, false, false); 1186 1186 } 1187 1187 … … 1332 1332 #endif 1333 1333 /* set first video mode */ 1334 setSizesAndCursorIntegration(pScrn, true );1334 setSizesAndCursorIntegration(pScrn, true, false); 1335 1335 1336 1336 /* Register block and wake-up handlers for getting new screen size hints. */ … … 1401 1401 vbvxReadSizesAndCursorIntegrationFromHGSMI(pScrn, NULL); 1402 1402 vbvxReadSizesAndCursorIntegrationFromProperties(pScrn, NULL); 1403 setSizesAndCursorIntegration(pScrn, true);1403 setSizesAndCursorIntegration(pScrn, false, true); 1404 1404 #ifdef SET_HAVE_VT_PROPERTY 1405 1405 updateHasVTProperty(pScrn, TRUE);
Note:
See TracChangeset
for help on using the changeset viewer.