summaryrefslogtreecommitdiff
path: root/src/evdev.c
diff options
context:
space:
mode:
authorHardening <rdp.effort@gmail.com>2013-09-18 23:56:35 +0200
committerKristian Høgsberg <krh@bitplanet.net>2013-09-21 11:40:17 -0700
commitff39efa5c01eb51daf73593cd7a39cc3fac6d48e (patch)
tree754846a4f22eec2e650be1727c69fa12e7067ad3 /src/evdev.c
parenta2df51c19f46f8b8b6a9968e18490d7ce99d32c1 (diff)
downloadweston-ff39efa5c01eb51daf73593cd7a39cc3fac6d48e.tar.gz
Rename current, origin, scale, origin_scale
This patch renames that fields to have consistent names.
Diffstat (limited to 'src/evdev.c')
-rw-r--r--src/evdev.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/evdev.c b/src/evdev.c
index a3d274a0..2367d56b 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: