diff options
author | Teddy Wing | 2016-12-03 00:32:01 -0500 |
---|---|---|
committer | Teddy Wing | 2016-12-03 00:32:01 -0500 |
commit | 7ffa846dff745feaccdc34d0d4caf72850bcd55d (patch) | |
tree | 0efcc32a04973272d617b9e9058a6eeb45560201 | |
parent | 9d91a7c908dc2261f2c3335875323c7088938204 (diff) | |
download | Low-Battery-Yup-7ffa846dff745feaccdc34d0d4caf72850bcd55d.tar.bz2 |
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
-rw-r--r-- | Low Battery Yup d/Mouse.m | 8 |
1 files changed, 0 insertions, 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]; } |