summaryrefslogtreecommitdiffstats
path: root/client/monitor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'client/monitor.cpp')
-rw-r--r--client/monitor.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/client/monitor.cpp b/client/monitor.cpp
index 85267693..d56cfadb 100644
--- a/client/monitor.cpp
+++ b/client/monitor.cpp
@@ -18,6 +18,7 @@
#include "common.h"
#include "monitor.h"
#include "debug.h"
+#include "platform.h"
uint32_t Monitor::self_monitors_change = 0;
@@ -33,3 +34,13 @@ bool Monitor::is_self_change()
return self_monitors_change != 0;
}
+void Monitor::set_mode(int width, int height)
+{
+ do_set_mode(width, height);
+ Platform::reset_cursor_pos();
+}
+void Monitor::restore()
+{
+ do_restore();
+ Platform::reset_cursor_pos();
+}