From 7ffa846dff745feaccdc34d0d4caf72850bcd55d Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sat, 3 Dec 2016 00:32:01 -0500 Subject: Clean up code from 9d91a7c908dc2261f2c3335875323c7088938204 * Remove the old point assignments * Remove the comments describing the pixel offsets from the bottom-left of the low battery alert window * Remove the NSLog for inspecting the frame rect values * Remove the `width` variable which is no longer used --- Low Battery Yup d/Mouse.m | 8 -------- 1 file changed, 8 deletions(-) diff --git a/Low Battery Yup d/Mouse.m b/Low Battery Yup d/Mouse.m index b3139fb..103909d 100644 --- a/Low Battery Yup d/Mouse.m +++ b/Low Battery Yup d/Mouse.m @@ -43,18 +43,10 @@ CGPoint point; - size_t width = CGDisplayPixelsWide(_current_display); size_t height = CGDisplayPixelsHigh(_current_display); - point.x = width / 2 + 182; - point.y = height / 2 - 116; // 1440x900 | 450 - 116 = 334 | 900 / 334 | 3340 / 900 = 3.7111 -// point.y = height / 2 - 292; // 2560x1600 | 800 - 292 = 508 | 1600 / 508 | 5080 / 1600 = 3.175 - - // x + 420 - // y + 30 point.x = _fake_alert_frame.origin.x + 420; point.y = height - _fake_alert_frame.origin.y - 30; - NSLog(@"%f, %f, %f, %f", _fake_alert_frame.origin.x, _fake_alert_frame.origin.y, _fake_alert_frame.size.width, _fake_alert_frame.size.height); [self moveToPoint:point]; } -- cgit v1.2.3