Yes updated :)
This commit is contained in:
@@ -40,14 +40,16 @@ namespace DREAM {
|
|||||||
m_height = height;
|
m_height = height;
|
||||||
}
|
}
|
||||||
|
|
||||||
// void Window::setFullscreen(bool enabled) {
|
void Window::setFullscreen(bool enabled) {
|
||||||
// if (enabled) {
|
if (m_fullscreen != enabled) {
|
||||||
// IsWindowFullscreen();
|
ToggleFullscreen();
|
||||||
// }
|
m_fullscreen = enabled;
|
||||||
// }
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void Window::toggleFullscreen() {
|
void Window::toggleFullscreen() {
|
||||||
ToggleFullscreen();
|
ToggleFullscreen();
|
||||||
|
m_fullscreen = !m_fullscreen;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Window::setTitle(const std::string &title) {
|
void Window::setTitle(const std::string &title) {
|
||||||
@@ -74,7 +76,7 @@ namespace DREAM {
|
|||||||
// }
|
// }
|
||||||
|
|
||||||
bool Window::isFullscreen() {
|
bool Window::isFullscreen() {
|
||||||
return IsWindowFullscreen();
|
return m_fullscreen;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Window::isVSyncEnabled() {
|
bool Window::isVSyncEnabled() {
|
||||||
|
|||||||
Reference in New Issue
Block a user