Changeset 3525 in vbox
- Timestamp:
- Jul 10, 2007 1:02:24 PM (18 years ago)
- svn:sync-xref-src-repo-rev:
- 22749
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/pdm.h
r3159 r3525 654 654 655 655 656 /** 657 * Display rectangle 658 */ 659 typedef struct PDMIDISPLAYRECT 660 { 661 int32_t x; 662 int32_t y; 663 uint32_t cx; 664 uint32_t cy; 665 } PDMIDISPLAYRECT, *PPDMIDISPLAYRECT; 666 667 656 668 /** Pointer to a display port interface. */ 657 669 typedef struct PDMIDISPLAYPORT *PPDMIDISPLAYPORT; … … 773 785 */ 774 786 DECLR3CALLBACKMEMBER(void, pfnSetRenderVRAM,(PPDMIDISPLAYPORT pInterface, bool fRender)); 787 788 /** 789 * Set the visible region of the display 790 * 791 * @returns VBox status code. 792 * @param pInterface Pointer to this interface. 793 * @param cRect Number of rectangles in pRect 794 * @param pRect Rectangle array 795 * @thread The emulation thread. 796 */ 797 DECLR3CALLBACKMEMBER(int, pfnSetVisibleRegion,(PPDMIDISPLAYPORT pInterface, uint32_t cRect, PPDMIDISPLAYRECT pRect)); 798 799 /** 800 * Query the visible region of the display 801 * 802 * @returns VBox status code. 803 * @param pInterface Pointer to this interface. 804 * @param pcRect Number of rectangles in pRect 805 * @param pRect Rectangle array (set to NULL to query the number of rectangles) 806 * @thread The emulation thread. 807 */ 808 DECLR3CALLBACKMEMBER(int, pfnQueryVisibleRegion,(PPDMIDISPLAYPORT pInterface, uint32_t *pcRect, PPDMIDISPLAYRECT pRect)); 809 775 810 } PDMIDISPLAYPORT; 776 811 -
trunk/src/VBox/Devices/Graphics/DevVGA.cpp
r3155 r3525 3742 3742 } 3743 3743 3744 /** @copydoc PDMIDISPLAYPORT::pfnSetVisibleRegion */ 3745 static DECLCALLBACK(int) vgaPortSetVisibleRegion(PPDMIDISPLAYPORT pInterface, uint32_t cRect, PPDMIDISPLAYRECT pRect) 3746 { 3747 PVGASTATE pData = IDISPLAYPORT_2_VGASTATE(pInterface); 3748 3749 if (!cRect || !pRect) 3750 return VERR_INVALID_PARAMETER; 3751 3752 /** @todo */ 3753 return VINF_SUCCESS; 3754 } 3755 3756 3757 /** @copydoc PDMIDISPLAYPORT::pfnQueryVisibleRegion */ 3758 static DECLCALLBACK(int) vgaPortQueryVisibleRegion(PPDMIDISPLAYPORT pInterface, uint32_t *pcRect, PPDMIDISPLAYRECT pRect) 3759 { 3760 PVGASTATE pData = IDISPLAYPORT_2_VGASTATE(pInterface); 3761 3762 if (!pcRect) 3763 return VERR_INVALID_PARAMETER; 3764 3765 /** @todo */ 3766 *pcRect = 1; 3767 3768 if (pRect) 3769 { 3770 pRect->x = 0; 3771 pRect->y = 0; 3772 pRect->cx = pData->last_scr_width; 3773 pRect->cy = pData->last_scr_height; 3774 } 3775 3776 return VINF_SUCCESS; 3777 } 3744 3778 3745 3779 /** … … 4602 4636 4603 4637 /* the interfaces. */ 4604 pData->Base.pfnQueryInterface = vgaPortQueryInterface; 4605 4606 pData->Port.pfnUpdateDisplay = vgaPortUpdateDisplay; 4607 pData->Port.pfnUpdateDisplayAll = vgaPortUpdateDisplayAll; 4608 pData->Port.pfnQueryColorDepth = vgaPortQueryColorDepth; 4609 pData->Port.pfnSetRefreshRate = vgaPortSetRefreshRate; 4610 pData->Port.pfnSnapshot = vgaPortSnapshot; 4611 pData->Port.pfnDisplayBlt = vgaPortDisplayBlt; 4612 pData->Port.pfnUpdateDisplayRect= vgaPortUpdateDisplayRect; 4613 pData->Port.pfnSetRenderVRAM = vgaPortSetRenderVRAM; 4638 pData->Base.pfnQueryInterface = vgaPortQueryInterface; 4639 4640 pData->Port.pfnUpdateDisplay = vgaPortUpdateDisplay; 4641 pData->Port.pfnUpdateDisplayAll = vgaPortUpdateDisplayAll; 4642 pData->Port.pfnQueryColorDepth = vgaPortQueryColorDepth; 4643 pData->Port.pfnSetRefreshRate = vgaPortSetRefreshRate; 4644 pData->Port.pfnSnapshot = vgaPortSnapshot; 4645 pData->Port.pfnDisplayBlt = vgaPortDisplayBlt; 4646 pData->Port.pfnUpdateDisplayRect = vgaPortUpdateDisplayRect; 4647 pData->Port.pfnSetRenderVRAM = vgaPortSetRenderVRAM; 4648 pData->Port.pfnSetVisibleRegion = vgaPortSetVisibleRegion; 4649 pData->Port.pfnQueryVisibleRegion = vgaPortQueryVisibleRegion; 4614 4650 4615 4651
Note:
See TracChangeset
for help on using the changeset viewer.