Changeset 53847 in vbox for trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/presenter
- Timestamp:
- Jan 16, 2015 8:53:12 AM (10 years ago)
- svn:sync-xref-src-repo-rev:
- 97665
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/presenter/server_presenter.cpp
r53158 r53847 1829 1829 } 1830 1830 1831 extern "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 1831 1854 int CrPMgrScreenChanged(uint32_t idScreen) 1832 1855 {
Note:
See TracChangeset
for help on using the changeset viewer.