I am super duper retarded.
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user