Changeset 22085 in vbox for trunk/src/VBox/Additions
- Timestamp:
- Aug 7, 2009 8:17:53 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/x11/vboxvideo/vboxvideo_13.c
r22084 r22085 55 55 # define DEBUG_VIDEO 1 56 56 #endif 57 57 58 #ifdef DEBUG_VIDEO 58 59 … … 116 117 static const OptionInfoRec * VBOXAvailableOptions(int chipid, int busid); 117 118 static void VBOXIdentify(int flags); 119 #ifndef PCIACCESS 118 120 static Bool VBOXProbe(DriverPtr drv, int flags); 119 # ifdef PCIACCESS121 #else 120 122 static Bool VBOXPciProbe(DriverPtr drv, int entity_num, 121 123 struct pci_device *dev, intptr_t match_data); … … 387 389 if ( !(mode->type & M_T_USERDEF) 388 390 && vbox_device_available(VBOXGetRec(pScrn)) 389 && !vboxHostLikesVideoMode(pScrn, mode->HDisplay, 390 mode->VDisplay,pScrn->bitsPerPixel)391 && !vboxHostLikesVideoMode(pScrn, mode->HDisplay, mode->VDisplay, 392 pScrn->bitsPerPixel) 391 393 ) 392 394 rc = MODE_BAD; … … 458 460 uint32_t x, y, bpp, display; 459 461 rc = vboxGetDisplayChangeRequest(pScrn, &x, &y, &bpp, &display); 460 /* *@todo - check the display number once we support multiple displays. */462 /* @todo - check the display number once we support multiple displays. */ 461 463 /* If we don't find a display request, see if we have a saved hint 462 464 * from a previous session. */ 463 if (rc)464 TRACE3("Got a display change request for %dx%d\n", x, y);465 465 if (!rc || (0 == x) || (0 == y)) 466 {467 466 rc = vboxRetrieveVideoMode(pScrn, &x, &y, &bpp); 468 if (rc)469 TRACE3("Retrieved a video mode of %dx%d\n", x, y);470 }471 467 if (rc && (0 != x) && (0 != y)) { 472 468 /* We prefer a slightly smaller size to a slightly larger one */ … … 666 662 #endif 667 663 664 #ifndef PCIACCESS 668 665 static Bool 669 666 VBOXProbe(DriverPtr drv, int flags) … … 681 678 return (FALSE); 682 679 683 #ifndef PCIACCESS684 680 /* PCI BUS */ 685 681 if (xf86GetPciVideoInfo()) { … … 720 716 } 721 717 } 718 719 xfree(devSections); 720 721 return (foundScreen); 722 } 722 723 #endif 723 724 xfree(devSections);725 726 return (foundScreen);727 }728 724 729 725 /*
Note:
See TracChangeset
for help on using the changeset viewer.