changeset 272:5437009cb10e

dep/animone: get macOS side building
author Paper <paper@paper.us.eu.org>
date Thu, 18 Apr 2024 16:51:35 -0400
parents f01b6e9c8fa2
children f31305b9f60a
files dep/animone/src/strategist.cc dep/animone/src/win/quartz.cc
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/dep/animone/src/strategist.cc	Sun Apr 14 22:28:50 2024 -0400
+++ b/dep/animone/src/strategist.cc	Thu Apr 18 16:51:35 2024 -0400
@@ -5,7 +5,7 @@
 #include "animone/strategies.h"
 #include "animone/util.h"
 
-#include <iostream>
+#include <unordered_map>
 
 /* this was STUPIDLY slow in Anisthesia, oops! */
 
--- a/dep/animone/src/win/quartz.cc	Sun Apr 14 22:28:50 2024 -0400
+++ b/dep/animone/src/win/quartz.cc	Thu Apr 18 16:51:35 2024 -0400
@@ -151,7 +151,7 @@
 		if (AXUIElementCopyAttributeValue(window, kAXPositionAttribute, reinterpret_cast<CFTypeRef*>(&val)) ==
 		    kAXErrorSuccess) {
 			CGPoint point;
-			if (!AXValueGetValue(val, kAXValueCGPointType, reinterpret_cast<void*>(&point)) ||
+			if (!AXValueGetValue(val, static_cast<AXValueType>(kAXValueCGPointType), reinterpret_cast<void*>(&point)) ||
 			    (point.x != bounds.origin.x || point.y != bounds.origin.y)) {
 				CFRelease(val);
 				continue;
@@ -166,7 +166,7 @@
 		if (AXUIElementCopyAttributeValue(window, kAXSizeAttribute, reinterpret_cast<CFTypeRef*>(&val)) ==
 		    kAXErrorSuccess) {
 			CGSize size;
-			if (!AXValueGetValue(val, kAXValueCGSizeType, reinterpret_cast<void*>(&size)) ||
+			if (!AXValueGetValue(val, static_cast<AXValueType>(kAXValueCGSizeType), reinterpret_cast<void*>(&size)) ||
 			    (size.width != bounds.size.width || size.height != bounds.size.height)) {
 				CFRelease(val);
 				continue;