summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/main.c b/main.c
index b3274a3..768a4fb 100644
--- a/main.c
+++ b/main.c
@@ -227,8 +227,8 @@ void ResolveMouseState() {
(Rectangle) {
.x = elementPreRender.x + dtpSource.x + 10 + gridCenter,
.y = elementPreRender.y + dtpSource.y + 10 + gridCenter,
- .width = dtpSource.width,
- .height = dtpSource.height
+ .width = fabs(dtpSource.width),
+ .height = fabs(dtpSource.height)
}
)
) {
@@ -262,8 +262,8 @@ void ResolveMouseState() {
(Rectangle) {
.x = elementRender.x + dtpDest.x + 10 + gridCenter,
.y = elementRender.y + dtpDest.y + 10 + gridCenter,
- .width = dtpDest.width,
- .height = dtpDest.height
+ .width = fabs(dtpDest.width),
+ .height = fabs(dtpDest.height)
}
)
) {