aboutsummaryrefslogtreecommitdiffstats
path: root/Invert.m
diff options
context:
space:
mode:
Diffstat (limited to 'Invert.m')
-rw-r--r--Invert.m8
1 files changed, 6 insertions, 2 deletions
diff --git a/Invert.m b/Invert.m
index 811d741..54cbbb5 100644
--- a/Invert.m
+++ b/Invert.m
@@ -40,7 +40,7 @@ static const CGGammaValue INVERTED_GAMMA[2] = {1, 0};
&display_count
);
if (error != kCGErrorSuccess) {
- // return 69;
+ NSLog(@"Error getting active displays: %d", error);
}
for (int i = 0; i < display_count; i++) {
@@ -52,7 +52,11 @@ static const CGGammaValue INVERTED_GAMMA[2] = {1, 0};
INVERTED_GAMMA
);
if (error != kCGErrorSuccess) {
- // TODO: error handling
+ NSLog(
+ @"Error inverting display '%d': %d",
+ active_displays[i],
+ error
+ );
}
}
}