Equity Me 030422
@@ -181,6 +181,13 @@ | ||
181 | 181 | } |
182 | 182 | break; |
183 | 183 | |
184 | + case WM_MOVING: | |
185 | + { | |
186 | + App->ResizeOgre_Window(); | |
187 | + Ogre::Root::getSingletonPtr()->renderOneFrame(); | |
188 | + return 0; | |
189 | + } | |
190 | + | |
184 | 191 | case WM_SIZE: |
185 | 192 | { |
186 | 193 | App->ResizeOgre_Window(); |
@@ -123,20 +123,20 @@ | ||
123 | 123 | //-----------------Ogre Window |
124 | 124 | SetWindowPos(ViewGLhWnd, NULL, 4, 80, NewWidth + 384, NewHeight + 68, SWP_NOZORDER); |
125 | 125 | |
126 | - /*if (App->OgreStarted == 1) | |
126 | + if (App->CL_Ogre->Ogre_Started == 1) | |
127 | 127 | { |
128 | 128 | RECT rect; |
129 | 129 | GetClientRect(App->ViewGLhWnd, &rect); |
130 | 130 | |
131 | - if ((rect.bottom - rect.top) != 0 && App->Cl19_Ogre->mCamera != 0) | |
131 | + if ((rect.bottom - rect.top) != 0 && App->CL_Ogre->mCamera != 0) | |
132 | 132 | { |
133 | - App->Cl19_Ogre->mWindow->windowMovedOrResized(); | |
134 | - App->Cl19_Ogre->mCamera->setAspectRatio((Ogre::Real)App->Cl19_Ogre->mWindow->getWidth() / (Ogre::Real)App->Cl19_Ogre->mWindow->getHeight()); | |
135 | - App->Cl19_Ogre->mCamera->yaw(Radian(0)); | |
136 | - Root::getSingletonPtr()->renderOneFrame(); | |
133 | + App->CL_Ogre->mWindow->windowMovedOrResized(); | |
134 | + App->CL_Ogre->mCamera->setAspectRatio((Ogre::Real)App->CL_Ogre->mWindow->getWidth() / (Ogre::Real)App->CL_Ogre->mWindow->getHeight()); | |
135 | + App->CL_Ogre->mCamera->yaw(Ogre::Radian(0)); | |
136 | + Ogre::Root::getSingletonPtr()->renderOneFrame(); | |
137 | 137 | } |
138 | 138 | |
139 | - }*/ | |
139 | + } | |
140 | 140 | |
141 | 141 | /*App->Cl_Panels->MovePhysicsView(); |
142 | 142 | App->Cl_Panels->Move_FileView_Window(); |