aboutsummaryrefslogtreecommitdiff
path: root/include/cru
diff options
context:
space:
mode:
Diffstat (limited to 'include/cru')
-rw-r--r--include/cru/platform/GraphicsBase.h6
-rw-r--r--include/cru/ui/host/WindowHost.h2
2 files changed, 2 insertions, 6 deletions
diff --git a/include/cru/platform/GraphicsBase.h b/include/cru/platform/GraphicsBase.h
index f134e74d..676d3924 100644
--- a/include/cru/platform/GraphicsBase.h
+++ b/include/cru/platform/GraphicsBase.h
@@ -5,11 +5,7 @@
#include "cru/common/Range.h"
#include "cru/common/String.h"
-#include <cstdint>
#include <limits>
-#include <optional>
-#include <string>
-#include <utility>
namespace cru::platform {
struct Size;
@@ -61,7 +57,7 @@ struct CRU_PLATFORM_API Size final {
explicit constexpr Size(const Point& point)
: width(point.x), height(point.y) {}
- constexpr static Size Infinate() {
+ constexpr static Size Infinite() {
return Size{std::numeric_limits<float>::max(),
std::numeric_limits<float>::max()};
}
diff --git a/include/cru/ui/host/WindowHost.h b/include/cru/ui/host/WindowHost.h
index 0d2e0341..17f69d89 100644
--- a/include/cru/ui/host/WindowHost.h
+++ b/include/cru/ui/host/WindowHost.h
@@ -57,7 +57,7 @@ class CRU_UI_API WindowHost : public Object, public SelfResolvable<WindowHost> {
}
void Relayout();
- void RelayoutWithSize(const Size& available_size = Size::Infinate(),
+ void RelayoutWithSize(const Size& available_size = Size::Infinite(),
bool set_window_size_to_fit_content = false);
void Repaint();