Changeset 95468 in vbox for trunk/src/VBox/Additions/x11/VBoxClient/display-svga-x11.cpp
- Timestamp:
- Jul 1, 2022 10:37:52 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/x11/VBoxClient/display-svga-x11.cpp
r95467 r95468 1315 1315 /* A mode with required size was not found. Create a new one. */ 1316 1316 pModeInfo = createMode(paOutputs[iOutputIndex].width, paOutputs[iOutputIndex].height); 1317 VBClLogInfo("create mode %s (%u) on output %d\n", pModeInfo->name, pModeInfo->id, iOutputIndex); 1317 1318 fNewMode = true; 1318 1319 } … … 1330 1331 x11Context.pXRRAddOutputMode(x11Context.pDisplay, outputId, pModeInfo->id); 1331 1332 #endif 1333 1332 1334 /* If mode has been newly created, destroy and forget mode created on previous guest screen resize event. */ 1333 1335 if ( aPrevMode[iOutputIndex] > 0 … … 1335 1337 && fNewMode) 1336 1338 { 1337 VBClLogInfo("removing unused mode %u \n", aPrevMode[outputId]);1338 #ifdef WITH_DISTRO_XRAND_XINERAMA 1339 XRRDeleteOutputMode(x11Context.pDisplay, outputId, aPrevMode[ outputId]);1340 XRRDestroyMode(x11Context.pDisplay, aPrevMode[ outputId]);1339 VBClLogInfo("removing unused mode %u from output %d\n", aPrevMode[iOutputIndex], iOutputIndex); 1340 #ifdef WITH_DISTRO_XRAND_XINERAMA 1341 XRRDeleteOutputMode(x11Context.pDisplay, outputId, aPrevMode[iOutputIndex]); 1342 XRRDestroyMode(x11Context.pDisplay, aPrevMode[iOutputIndex]); 1341 1343 #else 1342 1344 if (x11Context.pXRRDeleteOutputMode) 1343 x11Context.pXRRDeleteOutputMode(x11Context.pDisplay, outputId, aPrevMode[ outputId]);1345 x11Context.pXRRDeleteOutputMode(x11Context.pDisplay, outputId, aPrevMode[iOutputIndex]); 1344 1346 if (x11Context.pXRRDestroyMode) 1345 x11Context.pXRRDestroyMode(x11Context.pDisplay, aPrevMode[ outputId]);1347 x11Context.pXRRDestroyMode(x11Context.pDisplay, aPrevMode[iOutputIndex]); 1346 1348 #endif 1347 1349 /* Forget destroyed mode. */ 1348 aPrevMode[ outputId] = 0;1350 aPrevMode[iOutputIndex] = 0; 1349 1351 } 1350 1352 … … 1352 1354 * was not created by XRRCreateMode call. */ 1353 1355 if (fNewMode) 1354 aPrevMode[ outputId] = pModeInfo->id;1356 aPrevMode[iOutputIndex] = pModeInfo->id; 1355 1357 1356 1358 if (paOutputs[iOutputIndex].fPrimary)
Note:
See TracChangeset
for help on using the changeset viewer.