From a4ccb12fb3062e446d5b6a1dfd6fa91ae1c2fa5f Mon Sep 17 00:00:00 2001 From: rtk0c Date: Sun, 8 May 2022 00:50:52 -0700 Subject: Changeset: 29 Redefine world coordinate to have units in meters --- source/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/main.cpp') diff --git a/source/main.cpp b/source/main.cpp index 592350f..c0668d0 100644 --- a/source/main.cpp +++ b/source/main.cpp @@ -36,7 +36,7 @@ void GlfwErrorCallback(int error, const char* description) { } void GlfwFramebufferResizeCallback(GLFWwindow* window, int width, int height) { - AppConfig::mainWidnowWidth = width; + AppConfig::mainWindowWidth = width; AppConfig::mainWindowHeight = height; AppConfig::mainWindowAspectRatio = (float)width / height; } @@ -401,7 +401,7 @@ void main() { } } - int fbWidth = AppConfig::mainWidnowWidth; + int fbWidth = AppConfig::mainWindowWidth; int fbHeight = AppConfig::mainWindowHeight; glfwGetFramebufferSize(window, &fbWidth, &fbHeight); glViewport(0, 0, fbWidth, fbHeight); -- cgit v1.2.3-70-g09d2