I am super duper retarded.

This commit is contained in:
2026-01-28 23:05:17 +01:00
parent 091a8dbbcc
commit 2489e5795b
2 changed files with 3 additions and 14 deletions

View File

@@ -30,7 +30,7 @@ namespace DREAM {
} }
void Window::setHeight(int height) { void Window::setHeight(int height) {
SetWindowSize(m_height, height); SetWindowSize(m_width, height);
m_height = height; m_height = height;
} }
@@ -69,14 +69,6 @@ namespace DREAM {
setPosition(x, y); setPosition(x, y);
} }
int Window::getWidth() {
return GetScreenWidth();
}
int Window::getHeight() {
return GetScreenHeight();
}
float Window::getAspectRatio() { float Window::getAspectRatio() {
return static_cast<float>(m_width) / static_cast<float>(m_height); return static_cast<float>(m_width) / static_cast<float>(m_height);
} }

View File

@@ -26,17 +26,14 @@ namespace DREAM {
void setPosition(int x, int y); void setPosition(int x, int y);
void centerWindow(); void centerWindow();
int getWidth(); int getWindowWidth();
int getHeight(); int getWindowHeight();
float getAspectRatio(); float getAspectRatio();
bool isFullscreen(); bool isFullscreen();
bool isVSyncEnabled(); bool isVSyncEnabled();
bool isResizable(); bool isResizable();
int getWindowWidth();
int getWindowHeight();
int getMonitorIndex(); int getMonitorIndex();
int getMonitorRefreshRate(); int getMonitorRefreshRate();
int getMonitorWidth(); int getMonitorWidth();