Reimplemented from OglGui::SliderListener. Definition at line 56 of file LenseControl.h. References mLense, mSizeSlider, mZoomSlider, and OglGui::Slider::Value(). 00057 { 00058 if (userData == 0 && mLense != 0) 00059 mLense->zoomX = mLense->zoomY = mZoomSlider->Value() / 100.0f; 00060 00061 if (userData == (void*)1 && mLense != 0){ 00062 OGLVIEW *view = mLense->view; 00063 int val = mSizeSlider->Value(); 00064 if (val % 2) 00065 val--; 00066 int dif = mLense->view->w - val; 00067 viewSys.SetDimensions(view, view->x + dif/2, view->y + dif/2, 00068 val, val); 00069 } 00070 }
Here is the call graph for this function:
|