diff --git a/src/Engine/Window/Window.cpp b/src/Engine/Window/Window.cpp index 21c93d4..6c3fd4b 100644 --- a/src/Engine/Window/Window.cpp +++ b/src/Engine/Window/Window.cpp @@ -30,7 +30,7 @@ namespace DREAM { } void Window::setHeight(int height) { - SetWindowSize(m_height, height); + SetWindowSize(m_width, height); m_height = height; } @@ -69,14 +69,6 @@ namespace DREAM { setPosition(x, y); } - int Window::getWidth() { - return GetScreenWidth(); - } - - int Window::getHeight() { - return GetScreenHeight(); - } - float Window::getAspectRatio() { return static_cast(m_width) / static_cast(m_height); } diff --git a/src/Engine/Window/Window.hpp b/src/Engine/Window/Window.hpp index 6a6950b..6fbeb90 100644 --- a/src/Engine/Window/Window.hpp +++ b/src/Engine/Window/Window.hpp @@ -26,17 +26,14 @@ namespace DREAM { void setPosition(int x, int y); void centerWindow(); - int getWidth(); - int getHeight(); + int getWindowWidth(); + int getWindowHeight(); float getAspectRatio(); bool isFullscreen(); bool isVSyncEnabled(); bool isResizable(); - int getWindowWidth(); - int getWindowHeight(); - int getMonitorIndex(); int getMonitorRefreshRate(); int getMonitorWidth();