diff options
author | rtk0c <[email protected]> | 2022-05-08 00:50:52 -0700 |
---|---|---|
committer | rtk0c <[email protected]> | 2022-05-08 00:50:52 -0700 |
commit | a4ccb12fb3062e446d5b6a1dfd6fa91ae1c2fa5f (patch) | |
tree | f2765c869af4f37106a0f5ebc530ea7448655a0c /source/main.cpp | |
parent | daca3ada37d885b197d6fa810b6b793f18f8068e (diff) |
Changeset: 29 Redefine world coordinate to have units in meters
Diffstat (limited to 'source/main.cpp')
-rw-r--r-- | source/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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); |