summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authora1xd <[email protected]>2021-08-29 20:42:32 -0400
committera1xd <[email protected]>2021-08-29 20:42:32 -0400
commit598ffa03b4191a6b51374c8ee2528f2d1dadbb62 (patch)
treef30c7118ddb65689077a708c646ce19ff773d8fd /common
parentremove culture specific float parsing (diff)
downloadrawaccel-598ffa03b4191a6b51374c8ee2528f2d1dadbb62.tar.xz
rawaccel-598ffa03b4191a6b51374c8ee2528f2d1dadbb62.zip
bugfix - oob in SettingsErrors::ToString
Diffstat (limited to 'common')
-rw-r--r--common/rawaccel-validate.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/common/rawaccel-validate.hpp b/common/rawaccel-validate.hpp
index e776298..a03f56a 100644
--- a/common/rawaccel-validate.hpp
+++ b/common/rawaccel-validate.hpp
@@ -6,8 +6,8 @@
namespace rawaccel {
struct valid_ret_t {
- int count_x = 0;
- int count_y = 0;
+ int last_x = 0;
+ int last_y = 0;
int count = 0;
explicit operator bool() const
@@ -136,9 +136,9 @@ namespace rawaccel {
check_accel(args.argsv.x);
if (!args.combine_mags) {
- ret.count_x = ret.count;
+ ret.last_x = ret.count;
check_accel(args.argsv.y);
- ret.count_y = ret.count;
+ ret.last_y = ret.count;
}
if (args.dpi <= 0) {