Changeset 55436 in vbox for trunk/src/VBox/Additions/x11/vboxvideo
- Timestamp:
- Apr 27, 2015 9:13:02 AM (10 years ago)
- svn:sync-xref-src-repo-rev:
- 99782
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/x11/vboxvideo/vboxvideo.c
r55435 r55436 87 87 # include "xf86Crtc.h" 88 88 # include "xf86Modes.h" 89 /* For xf86RandR12GetOriginalVirtualSize(). */90 # include "xf86RandR12.h"91 89 #endif 92 90 /* For setting the root window property. */ … … 285 283 return FALSE; 286 284 } 287 vbvxClearVRAM(pScrn, ((size_t)pScrn->virtualX)* pScrn->virtualY * pScrn->bitsPerPixel / 8,285 vbvxClearVRAM(pScrn, pScrn->virtualX * pScrn->virtualY * pScrn->bitsPerPixel / 8, 288 286 adjustedWidth * height * pScrn->bitsPerPixel / 8); 289 287 pScreen->ModifyPixmapHeader(pPixmap, adjustedWidth, height, pScrn->depth, pScrn->bitsPerPixel, cbLine, pVBox->base); … … 335 333 unsigned cFirst = cScreen; 336 334 unsigned cLast = cScreen != 0 ? cScreen + 1 : pVBox->cScreens; 337 int originalX, originalY; 338 339 /* Check that this code cannot trigger the resizing bug in X.Org Server 1.3. 340 * See the work-around in PreInit. */ 341 xf86RandR12GetOriginalVirtualSize(pScrn, &originalX, &originalY); 342 VBVXASSERT(originalX == VBOX_VIDEO_MAX_VIRTUAL && originalY == VBOX_VIDEO_MAX_VIRTUAL, ("")); 335 343 336 for (i = cFirst; i < cLast; ++i) 344 337 if (pVBox->pScreens[i].paCrtcs->mode.HDisplay != 0 && pVBox->pScreens[i].paCrtcs->mode.VDisplay != 0) … … 921 914 922 915 #ifdef VBOXVIDEO_13 923 /* Work around a bug in the original X server modesetting code, which took 924 * the first valid values set to these two as maxima over the server 925 * lifetime. This bug was introduced on Feb 15 2007 and was fixed in commit 926 * fa877d7f three months later, so it was present in X.Org Server 1.3. */ 916 /* Work around a bug in the original X server modesetting code, which 917 * took the first valid values set to these two as maxima over the 918 * server lifetime. */ 927 919 pScrn->virtualX = VBOX_VIDEO_MAX_VIRTUAL; 928 920 pScrn->virtualY = VBOX_VIDEO_MAX_VIRTUAL; … … 1420 1412 #endif 1421 1413 vboxDisableVbva(pScrn); 1422 vbvxClearVRAM(pScrn, ((size_t)pScrn->virtualX)* pScrn->virtualY * pScrn->bitsPerPixel / 8, 0);1414 vbvxClearVRAM(pScrn, pScrn->virtualX * pScrn->virtualY * pScrn->bitsPerPixel / 8, 0); 1423 1415 #ifdef VBOX_DRI_OLD 1424 1416 if (pVBox->useDRI) … … 1451 1443 #endif 1452 1444 vboxDisableVbva(pScrn); 1453 vbvxClearVRAM(pScrn, ((size_t)pScrn->virtualX)* pScrn->virtualY * pScrn->bitsPerPixel / 8, 0);1445 vbvxClearVRAM(pScrn, pScrn->virtualX * pScrn->virtualY * pScrn->bitsPerPixel / 8, 0); 1454 1446 } 1455 1447 #ifdef VBOX_DRI
Note:
See TracChangeset
for help on using the changeset viewer.