aboutsummaryrefslogtreecommitdiff
path: root/include/cru/platform
diff options
context:
space:
mode:
author杨宇千 <crupest@outlook.com>2019-08-11 01:09:49 +0800
committer杨宇千 <crupest@outlook.com>2019-08-11 01:09:49 +0800
commit0e35b2c022599bca2df61488945f07e4d6b4eb35 (patch)
tree71daef6f9725a250b9fcaf97fdecc9bdf46bd6e3 /include/cru/platform
parent9eed31954c14f2d60c906adb5b49b58fbee4ff7f (diff)
downloadcru-0e35b2c022599bca2df61488945f07e4d6b4eb35.tar.gz
cru-0e35b2c022599bca2df61488945f07e4d6b4eb35.tar.bz2
cru-0e35b2c022599bca2df61488945f07e4d6b4eb35.zip
...
Diffstat (limited to 'include/cru/platform')
-rw-r--r--include/cru/platform/exception.hpp2
-rw-r--r--include/cru/platform/native/basic_types.hpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/include/cru/platform/exception.hpp b/include/cru/platform/exception.hpp
index b1e505e0..ad6827c0 100644
--- a/include/cru/platform/exception.hpp
+++ b/include/cru/platform/exception.hpp
@@ -11,7 +11,7 @@ class PlatformException : public std::runtime_error {
// This exception is throwed when a resource has been disposed and not usable
// again.
-// For example, calling Build twice on a GeometryBuild will lead to this
+// For example, calling Build twice on a GeometryBuilder::Build will lead to this
// exception.
class ReuseException : public std::runtime_error {
public:
diff --git a/include/cru/platform/native/basic_types.hpp b/include/cru/platform/native/basic_types.hpp
index 573a9e76..5a7155ee 100644
--- a/include/cru/platform/native/basic_types.hpp
+++ b/include/cru/platform/native/basic_types.hpp
@@ -7,5 +7,5 @@ struct Dpi {
float y;
};
-enum class MouseButton { Left, Right, Middle };
-} // namespace cru::platform
+enum MouseButton : unsigned { Left = 1, Right = 2, Middle = 4 };
+} // namespace cru::platform::native