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) {
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<float>(m_width) / static_cast<float>(m_height);
}

View File

@@ -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();