Changeset 35931 in vbox
- Timestamp:
- Feb 10, 2011 5:08:31 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/x11/vboxvideo/vboxvideo.c
r35882 r35931 785 785 /* Get our private data from the ScrnInfoRec structure. */ 786 786 pVBox = VBOXGetRec(pScrn); 787 if (!pVBox) 788 return FALSE; 787 789 788 790 /* Initialise the guest library */ … … 802 804 803 805 /* The framebuffer module. */ 804 if ( xf86LoadSubModule(pScrn, "fb") == NULL)806 if (!xf86LoadSubModule(pScrn, "fb")) 805 807 return (FALSE); 806 808 … … 831 833 832 834 pScrn->chipset = "vbox"; 835 /** @note needed during colourmap initialisation */ 833 836 pScrn->rgbBits = 8; 834 837 835 /* Let's create a nice, capable virtual monitor. 836 * This *is* still needed, at least for server version 1.3 */ 838 /* Let's create a nice, capable virtual monitor. */ 837 839 pScrn->monitor = pScrn->confScreen->monitor; 838 840 pScrn->monitor->DDC = NULL; … … 926 928 xf86SetDpi(pScrn, 96, 96); 927 929 928 /* Framebuffer-related setup */ 929 pScrn->bitmapBitOrder = BITMAP_BIT_ORDER; 930 if (pScrn->memPhysBase == 0) { 931 #ifdef PCIACCESS 932 pScrn->memPhysBase = pVBox->pciInfo->regions[0].base_addr; 933 #else 934 pScrn->memPhysBase = pVBox->pciInfo->memBase[0]; 935 #endif 936 pScrn->fbOffset = 0; 937 } 930 938 931 939 TRACE_EXIT(); … … 980 988 return (FALSE); 981 989 982 if (pScrn->memPhysBase == 0) {983 #ifdef PCIACCESS984 pScrn->memPhysBase = pVBox->pciInfo->regions[0].base_addr;985 #else986 pScrn->memPhysBase = pVBox->pciInfo->memBase[0];987 #endif988 pScrn->fbOffset = 0;989 }990 991 990 if (!VBOXMapVidMem(pScrn)) 992 991 return (FALSE); … … 997 996 /* mi layer - reset the visual list (?)*/ 998 997 miClearVisualTypes(); 999 if (!xf86SetDefaultVisual(pScrn, -1))1000 return (FALSE);1001 998 if (!miSetVisualTypes(pScrn->depth, TrueColorMask, 1002 999 pScrn->rgbBits, TrueColor)) … … 1009 1006 #endif 1010 1007 1011 /* I checked in the sources, and XFree86 4.2 does seem to support1012 this function for 32bpp. */1013 1008 if (!fbScreenInit(pScreen, pVBox->base, 1014 1009 pScrn->virtualX, pScrn->virtualY, … … 1018 1013 1019 1014 /* Fixup RGB ordering */ 1015 /** @note the X server uses this even in true colour. */ 1020 1016 visual = pScreen->visuals + pScreen->numVisuals; 1021 1017 while (--visual >= pScreen->visuals) {
Note:
See TracChangeset
for help on using the changeset viewer.