Changeset 84026 in vbox for trunk/src/VBox/Additions/x11/VBoxClient
- Timestamp:
- Apr 28, 2020 7:31:23 AM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 137597
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/x11/VBoxClient/display-svga-x11.cpp
r84025 r84026 621 621 } 622 622 623 static bool callVMWCTRL( )624 { 625 constint hHeight = 600;626 constint hWidth = 800;623 static bool callVMWCTRL(struct RANDROUTPUT *paOutputs) 624 { 625 int hHeight = 600; 626 int hWidth = 800; 627 627 628 628 xXineramaScreenInfo *extents = (xXineramaScreenInfo *)malloc(x11Context.hOutputCount * sizeof(xXineramaScreenInfo)); … … 632 632 for (int i = 0; i < x11Context.hOutputCount; ++i) 633 633 { 634 if (paOutputs[i].fEnabled) 635 { 636 hHeight = paOutputs[i].height; 637 hWidth = paOutputs[i].width; 638 } 639 else 640 { 641 hHeight = 0; 642 hWidth = 0; 643 } 634 644 extents[i].x_org = hRunningOffset; 635 645 extents[i].y_org = 0; … … 648 658 if (x11Context.pDisplay == NULL) 649 659 return false; 650 callVMWCTRL();651 660 if (RT_FAILURE(startX11MonitorThread())) 652 661 return false; … … 1117 1126 1118 1127 XGrabServer(x11Context.pDisplay); 1119 1128 callVMWCTRL(paOutputs); 1120 1129 /* Disable crtcs. */ 1121 1130 for (int i = 0; i < x11Context.pScreenResources->noutput; ++i)
Note:
See TracChangeset
for help on using the changeset viewer.