Added getAspectRatio()

This commit is contained in:
2026-01-28 22:43:26 +01:00
parent c147647ff7
commit d23619ad9e
2 changed files with 4 additions and 4 deletions

View File

@@ -71,9 +71,9 @@ namespace DREAM {
return GetScreenHeight();
}
// float Window::getAspectRatio() {
// return GetScreen
// }
float Window::getAspectRatio() {
return static_cast<float>(m_width) / static_cast<float>(m_height);
}
bool Window::isFullscreen() {
return m_fullscreen;

View File

@@ -27,7 +27,7 @@ namespace DREAM {
int getWidth();
int getHeight();
// float getAspectRatio();
float getAspectRatio();
bool isFullscreen();
bool isVSyncEnabled();