diff options
| author | Teddy Wing | 2021-03-07 13:59:21 +0100 |
|---|---|---|
| committer | Teddy Wing | 2021-03-07 13:59:21 +0100 |
| commit | 0d2af9c00c9012762b3565538f6c5b87128da0d1 (patch) | |
| tree | 3df7ecc7bcf464ca1c20d436cfe98e139819df16 /Invert.m | |
| parent | 15b554ffdcb03e41c51c1afa93bda429867a1bf1 (diff) | |
| download | Re-Good-Catalina-Invert-Colours-0d2af9c00c9012762b3565538f6c5b87128da0d1.tar.bz2 | |
invertColors: Log errors
Diffstat (limited to 'Invert.m')
| -rw-r--r-- | Invert.m | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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 + ); } } } |
