stability improvements, fixes

This commit is contained in:
turanszkij
2020-03-07 16:18:23 +00:00
parent 4318b000e1
commit d95dfa7ef2
81 changed files with 963 additions and 1180 deletions
+1 -4
View File
@@ -21,9 +21,6 @@ CameraWindow::CameraWindow(wiGUI* gui) :GUI(gui)
{
assert(GUI && "Invalid GUI!");
float screenW = (float)wiRenderer::GetDevice()->GetScreenWidth();
float screenH = (float)wiRenderer::GetDevice()->GetScreenHeight();
camera_transform.MatrixTransform(wiRenderer::GetCamera().GetInvView());
camera_transform.UpdateTransform();
@@ -140,7 +137,7 @@ CameraWindow::CameraWindow(wiGUI* gui) :GUI(gui)
SetEntity(INVALID_ENTITY);
cameraWindow->Translate(XMFLOAT3(screenW - 720, 500, 0));
cameraWindow->Translate(XMFLOAT3(gui->GetSize().x - 720, 500, 0));
cameraWindow->SetVisible(false);
}