Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/windowing
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2023-07-05 18:25:16 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2023-07-05 18:25:16 +1000
commit54dfd900cab72d9efeff7df35c3a73e9be76bb18 (patch)
tree0439adfa8ea801d630db46c794f21032948569ed /source/windowing
parentc923f4f13b1cade968bb6fec585a242b62d35715 (diff)
interface.bindCanvas uses interface scale by default
Diffstat (limited to 'source/windowing')
-rw-r--r--source/windowing/StarCanvasWidget.cpp4
-rw-r--r--source/windowing/StarCanvasWidget.hpp1
2 files changed, 5 insertions, 0 deletions
diff --git a/source/windowing/StarCanvasWidget.cpp b/source/windowing/StarCanvasWidget.cpp
index 7bff638..ed2e30f 100644
--- a/source/windowing/StarCanvasWidget.cpp
+++ b/source/windowing/StarCanvasWidget.cpp
@@ -18,6 +18,10 @@ void CanvasWidget::setIgnoreInterfaceScale(bool ignoreInterfaceScale) {
m_ignoreInterfaceScale = ignoreInterfaceScale;
}
+bool CanvasWidget::ignoreInterfaceScale() const {
+ return m_ignoreInterfaceScale;
+}
+
void CanvasWidget::clear() {
m_renderOps.clear();
}
diff --git a/source/windowing/StarCanvasWidget.hpp b/source/windowing/StarCanvasWidget.hpp
index 3006852..295f877 100644
--- a/source/windowing/StarCanvasWidget.hpp
+++ b/source/windowing/StarCanvasWidget.hpp
@@ -32,6 +32,7 @@ public:
void setCaptureMouseEvents(bool captureMouse);
void setCaptureKeyboardEvents(bool captureKeyboard);
void setIgnoreInterfaceScale(bool ignoreInterfaceScale);
+ bool ignoreInterfaceScale() const;
// Returns mouse position relative to the lower left of the drawing region.
Vec2I mousePosition() const;