From 6ba7f83a3bd1d20d8715825dba1f0ef5e95a508a Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Sat, 21 Dec 2024 20:05:40 -0600 Subject: [PATCH] [studio] Make selection tracker not go below 0 --- .../studio/modlib/include/studio/selectiontracker.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/deps/nostalgia/src/olympic/studio/modlib/include/studio/selectiontracker.hpp b/deps/nostalgia/src/olympic/studio/modlib/include/studio/selectiontracker.hpp index 53f2d5f..1859f94 100644 --- a/deps/nostalgia/src/olympic/studio/modlib/include/studio/selectiontracker.hpp +++ b/deps/nostalgia/src/olympic/studio/modlib/include/studio/selectiontracker.hpp @@ -126,12 +126,12 @@ class SelectionTracker { constexpr Selection selection() const noexcept { return { { - ox::min(m_pointA.x, m_pointB.x), - ox::min(m_pointA.y, m_pointB.y), + ox::max(0, ox::min(m_pointA.x, m_pointB.x)), + ox::max(0, ox::min(m_pointA.y, m_pointB.y)), }, { - ox::max(m_pointA.x, m_pointB.x), - ox::max(m_pointA.y, m_pointB.y), + ox::max(0, ox::max(m_pointA.x, m_pointB.x)), + ox::max(0, ox::max(m_pointA.y, m_pointB.y)), }, }; }