VirtualBox

Ignore:
Timestamp:
Jan 16, 2015 8:53:12 AM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
97665
Message:

Host 3D: content scalling: export IDisplay interface and connect it to OpenGL HGCM service.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/presenter/server_presenter.cpp

    r53158 r53847  
    18291829}
    18301830
     1831extern "C" DECLEXPORT(int) VBoxOglSetScaleFactor(uint32_t idScreen, double dScaleFactorW, double dScaleFactorH)
     1832{
     1833    if (idScreen >= CR_MAX_GUEST_MONITORS)
     1834    {
     1835        WARN(("invalid idScreen %d", idScreen));
     1836        return VERR_INVALID_PARAMETER;
     1837    }
     1838
     1839    CR_FBDISPLAY_INFO *pDpInfo = &g_CrPresenter.aDisplayInfos[idScreen];
     1840    if (pDpInfo->pDpWin)
     1841    {
     1842        CrFbWindow *pWin = pDpInfo->pDpWin->getWindow();
     1843        if (pWin)
     1844        {
     1845            bool rc;
     1846            rc = pWin->SetScaleFactor((GLdouble)dScaleFactorW, (GLdouble)dScaleFactorH);
     1847            return rc ? 0 : VERR_LOCK_FAILED;
     1848        }
     1849    }
     1850
     1851    return VERR_INVALID_PARAMETER;
     1852}
     1853
    18311854int CrPMgrScreenChanged(uint32_t idScreen)
    18321855{
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette