summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAkemi <der.richter@gmx.de>2017-07-26 21:41:31 +0200
committerAkemi <der.richter@gmx.de>2017-07-31 20:22:33 +0200
commit80758eda17ed565ff158a682f0735f167aa2c275 (patch)
tree3f6391475db18cf8c0fb4ba849bb64d942daead0
parentb726f1eb9060bf9abbd83a06298c557e25557612 (diff)
downloadmpv-80758eda17ed565ff158a682f0735f167aa2c275.tar.bz2
mpv-80758eda17ed565ff158a682f0735f167aa2c275.tar.xz
cocoa: remove usage of FFABS and the dependency on libavutil/common.h
-rw-r--r--video/out/cocoa/events_view.m6
1 files changed, 2 insertions, 4 deletions
diff --git a/video/out/cocoa/events_view.m b/video/out/cocoa/events_view.m
index 3162e5e9c9..a9dec1d1d0 100644
--- a/video/out/cocoa/events_view.m
+++ b/video/out/cocoa/events_view.m
@@ -15,8 +15,6 @@
* License along with mpv. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <libavutil/common.h>
-
#include "input/input.h"
#include "input/keycodes.h"
@@ -246,7 +244,7 @@
CGFloat delta;
int cmd;
- if (FFABS([event deltaY]) >= FFABS([event deltaX])) {
+ if (fabs([event deltaY]) >= fabs([event deltaX])) {
delta = [event deltaY] * 0.1;
cmd = delta > 0 ? MP_AXIS_UP : MP_AXIS_DOWN;
} else {
@@ -254,7 +252,7 @@
cmd = delta > 0 ? MP_AXIS_RIGHT : MP_AXIS_LEFT;
}
- [self.adapter putAxis:cmd delta:FFABS(delta)];
+ [self.adapter putAxis:cmd delta:fabs(delta)];
}
- (void)scrollWheel:(NSEvent *)event