From 6f96846e0a33eb3eccb58e62b782200a1e959b74 Mon Sep 17 00:00:00 2001 From: Hardening Date: Wed, 18 Sep 2013 23:56:35 +0200 Subject: [PATCH] Rename current, origin, scale, origin_scale This patch renames that fields to have consistent names. --- src/evdev.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/evdev.c b/src/evdev.c index a3d274a..2367d56 100644 --- a/src/evdev.c +++ b/src/evdev.c @@ -104,8 +104,8 @@ evdev_process_key(struct evdev_device *device, struct input_event *e, int time) static void evdev_process_touch(struct evdev_device *device, struct input_event *e) { - const int screen_width = device->output->current->width; - const int screen_height = device->output->current->height; + const int screen_width = device->output->current_mode->width; + const int screen_height = device->output->current_mode->height; switch (e->code) { case ABS_MT_SLOT: @@ -136,8 +136,8 @@ static inline void evdev_process_absolute_motion(struct evdev_device *device, struct input_event *e) { - const int screen_width = device->output->current->width; - const int screen_height = device->output->current->height; + const int screen_width = device->output->current_mode->width; + const int screen_height = device->output->current_mode->height; switch (e->code) { case ABS_X: -- 2.7.4