Mercurial > minori
diff dep/animone/src/win/quartz.cc @ 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 | 246017a7907a |
line wrap: on
line diff
--- 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;