diff options
author | Stefan Achatz <erazor_de@users.sourceforge.net> | 2011-08-27 09:24:36 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2011-09-07 07:38:27 -0400 |
commit | 1c5784da12e34e98eb0a1b8f4323419dd84ea0b0 (patch) | |
tree | 645235ba32f8405fe4df117e7fc7cc457e4fee2a /drivers | |
parent | ddf28352b80c86754a6424e3a61e8bdf9213b3c7 (diff) |
HID: roccat: Fixed false dpi reporting when using osd event
Actual dpi resolution was set on wrong occassion.
Signed-off-by: Stefan Achatz <erazor_de@users.sourceforge.net>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/hid/hid-roccat-kone.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/hid/hid-roccat-kone.c b/drivers/hid/hid-roccat-kone.c index 2b8f3a31ffb3..7847a5bb88fb 100644 --- a/drivers/hid/hid-roccat-kone.c +++ b/drivers/hid/hid-roccat-kone.c | |||
@@ -776,10 +776,10 @@ static void kone_keep_values_up_to_date(struct kone_device *kone, | |||
776 | { | 776 | { |
777 | switch (event->event) { | 777 | switch (event->event) { |
778 | case kone_mouse_event_switch_profile: | 778 | case kone_mouse_event_switch_profile: |
779 | kone->actual_dpi = kone->profiles[event->value - 1]. | ||
780 | startup_dpi; | ||
779 | case kone_mouse_event_osd_profile: | 781 | case kone_mouse_event_osd_profile: |
780 | kone->actual_profile = event->value; | 782 | kone->actual_profile = event->value; |
781 | kone->actual_dpi = kone->profiles[kone->actual_profile - 1]. | ||
782 | startup_dpi; | ||
783 | break; | 783 | break; |
784 | case kone_mouse_event_switch_dpi: | 784 | case kone_mouse_event_switch_dpi: |
785 | case kone_mouse_event_osd_dpi: | 785 | case kone_mouse_event_osd_dpi: |