Yes updated :)

This commit is contained in:
2026-01-28 22:39:58 +01:00
parent 2d02041ef5
commit c147647ff7

View File

@@ -40,14 +40,16 @@ namespace DREAM {
m_height = height;
}
// void Window::setFullscreen(bool enabled) {
// if (enabled) {
// IsWindowFullscreen();
// }
// }
void Window::setFullscreen(bool enabled) {
if (m_fullscreen != enabled) {
ToggleFullscreen();
m_fullscreen = enabled;
}
}
void Window::toggleFullscreen() {
ToggleFullscreen();
m_fullscreen = !m_fullscreen;
}
void Window::setTitle(const std::string &title) {
@@ -74,7 +76,7 @@ namespace DREAM {
// }
bool Window::isFullscreen() {
return IsWindowFullscreen();
return m_fullscreen;
}
bool Window::isVSyncEnabled() {