- Timestamp:
- Jan 30, 2011 12:05:05 AM (14 years ago)
- Location:
- trunk/src/VBox/Additions/x11/vboxvideo
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/x11/vboxvideo/Makefile.kmk
r35398 r35775 141 141 $(VBOX_PATH_X11_ROOT)/xf86driproto-2.1.0 142 142 vboxvideo_drv_13_INCS += $(PATH_ROOT)/src/VBox/Runtime/include 143 vboxvideo_drv_13_SOURCES = $(vboxvideo_drv_SOURCES) 143 vboxvideo_drv_13_SOURCES = $(vboxvideo_drv_SOURCES) edid.c 144 144 145 145 … … 160 160 $(VBOX_PATH_X11_ROOT)/xf86driproto-2.1.0 161 161 vboxvideo_drv_14_INCS += $(PATH_ROOT)/src/VBox/Runtime/include 162 vboxvideo_drv_14_SOURCES = $(vboxvideo_drv_ SOURCES)162 vboxvideo_drv_14_SOURCES = $(vboxvideo_drv_13_SOURCES) 163 163 164 164 … … 183 183 $(VBOX_PATH_X11_ROOT)/xorg-server-1.5.3 184 184 vboxvideo_drv_15_INCS += $(PATH_ROOT)/src/VBox/Runtime/include 185 vboxvideo_drv_15_SOURCES = $(vboxvideo_drv_ SOURCES)185 vboxvideo_drv_15_SOURCES = $(vboxvideo_drv_13_SOURCES) 186 186 if1of ($(KBUILD_TARGET), linux solaris) 187 187 vboxvideo_drv_15_SOURCES += \ -
trunk/src/VBox/Additions/x11/vboxvideo/undefined_13
r34914 r35775 187 187 xf86SetDesiredModes 188 188 xf86SetDpi 189 xf86OutputSetEDID 189 190 xf86SetGamma 190 191 xf86SetModeDefaultName -
trunk/src/VBox/Additions/x11/vboxvideo/vboxutils.c
r35398 r35775 1035 1035 * @param pcBits where to store the mode's BPP 1036 1036 */ 1037 staticunsigned vboxNextStandardMode(ScrnInfoPtr pScrn, unsigned cIndex,1038 1039 1037 unsigned vboxNextStandardMode(ScrnInfoPtr pScrn, unsigned cIndex, 1038 uint32_t *pcx, uint32_t *pcy, 1039 uint32_t *pcBits) 1040 1040 { 1041 1041 XF86ASSERT(cIndex < vboxNumStdModes, -
trunk/src/VBox/Additions/x11/vboxvideo/vboxvideo.c
r35616 r35775 404 404 } 405 405 406 static void406 static DisplayModePtr 407 407 vbox_output_add_mode (VBOXPtr pVBox, DisplayModePtr *pModes, 408 408 const char *pszName, int x, int y, … … 438 438 } 439 439 *pModes = xf86ModesAdd(*pModes, pMode); 440 return pMode; 440 441 } 441 442 … … 443 444 vbox_output_get_modes (xf86OutputPtr output) 444 445 { 445 unsigned i ;446 DisplayModePtr pModes = NULL ;446 unsigned i, cIndex = 0; 447 DisplayModePtr pModes = NULL, pMode; 447 448 ScrnInfoPtr pScrn = output->scrn; 448 449 VBOXPtr pVBox = VBOXGetRec(pScrn); … … 452 453 iScreen = (uintptr_t)output->driver_private; 453 454 vboxGetPreferredMode(pScrn, iScreen, &x, &y, &bpp); 454 vbox_output_add_mode(pVBox, &pModes, NULL, x, y, TRUE, FALSE); 455 pMode = vbox_output_add_mode(pVBox, &pModes, NULL, x, y, TRUE, FALSE); 456 VBOXEDIDSet(output, pMode); 457 /* Add standard modes supported by the host */ 458 for ( ; ; ) 459 { 460 cIndex = vboxNextStandardMode(pScrn, cIndex, &x, &y, NULL); 461 if (cIndex == 0) 462 break; 463 vbox_output_add_mode(pVBox, &pModes, NULL, x, y, FALSE, FALSE); 464 } 455 465 456 466 /* Also report any modes the user may have requested in the xorg.conf … … 470 480 vboxAtomVBoxMode(void) 471 481 { 472 static Atom rc = 0; 473 if (!rc) 474 rc = MakeAtom("VBOX_MODE", sizeof("VBOX_MODE") - 1, TRUE); 475 return rc; 482 return MakeAtom("VBOX_MODE", sizeof("VBOX_MODE") - 1, TRUE); 483 } 484 485 static Atom 486 vboxAtomEDID(void) 487 { 488 return MakeAtom("EDID", sizeof("EDID") - 1, TRUE); 476 489 } 477 490 … … 504 517 return TRUE; 505 518 } 519 if (property == vboxAtomEDID()) 520 return TRUE; 506 521 return FALSE; 507 522 } -
trunk/src/VBox/Additions/x11/vboxvideo/vboxvideo.h
r35616 r35775 257 257 extern Bool vboxSaveVideoMode(ScrnInfoPtr pScrn, uint32_t cx, uint32_t cy, uint32_t cBits); 258 258 extern Bool vboxRetrieveVideoMode(ScrnInfoPtr pScrn, uint32_t *pcx, uint32_t *pcy, uint32_t *pcBits); 259 extern unsigned vboxNextStandardMode(ScrnInfoPtr pScrn, unsigned cIndex, 260 uint32_t *pcx, uint32_t *pcy, 261 uint32_t *pcBits); 259 262 extern void vboxGetPreferredMode(ScrnInfoPtr pScrn, uint32_t iScreen, 260 263 uint32_t *pcx, uint32_t *pcy, … … 270 273 extern void VBOXDRICloseScreen(ScreenPtr pScreen, VBOXPtr pVBox); 271 274 272 /* Xinerama stuff */ 273 #define VBOXRAMA_MAJOR_VERSION 1 274 #define VBOXRAMA_MINOR_VERSION 0 275 /* EDID generation */ 276 extern Bool VBOXEDIDSet(struct _xf86Output *output, DisplayModePtr pmode); 275 277 276 278 #endif /* _VBOXVIDEO_H_ */
Note:
See TracChangeset
for help on using the changeset viewer.