Reimplemented from OglGui::Window. Definition at line 302 of file VideoPlayer.h. References OglGui::OglWindow::H(), OglGui::Window::InitDisplayFunc(), mFitViewToWindow, mImH, mImW, mOglView, mPower2H, mPower2W, mScaleImageToView, and OglGui::OglWindow::W(). 00303 { 00304 if (mFitViewToWindow && mOglView) 00305 viewSys.SetDimensions(mOglView, 2, 2, W()-4, H()-4); 00306 00307 if (mOglView && mScaleImageToView && mOglView->im) 00308 { 00309 float zX = (W()-4)/(float)mImW; 00310 float zY = (H()-4)/(float)mImH; 00311 if (mOglView->texturing && mOglView->im->noTexScaling) 00312 { 00313 zX = ((W()-4)/(float)mImW)*(mPower2W/(float)mImW); 00314 zY = ((H()-4)/(float)mImH)*(mPower2H/(float)mImH); 00315 } 00316 viewSys.SetZoom(mOglView, zX, zY); 00317 } 00318 Window::InitDisplayFunc(); 00319 }
Here is the call graph for this function:
|