diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-10-23 10:48:36 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-10-23 10:48:36 +0400 |
commit | 5816aa42bf7bff9c7037b7a2bd629c8f26ed2fed (patch) | |
tree | 7dade95cee648c846d8f02162efdd26c710d9444 /source/blender/editors/include/ED_numinput.h | |
parent | c3b746fa7e4ddcddbe42f65bf9915db21fd75669 (diff) |
code cleanup: minor transform refactor
redraw flag were mixing up types - int/char/bool, add enum type to use instead.
Diffstat (limited to 'source/blender/editors/include/ED_numinput.h')
-rw-r--r-- | source/blender/editors/include/ED_numinput.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/source/blender/editors/include/ED_numinput.h b/source/blender/editors/include/ED_numinput.h index e7d80d96f89..f46332c9a82 100644 --- a/source/blender/editors/include/ED_numinput.h +++ b/source/blender/editors/include/ED_numinput.h @@ -27,7 +27,6 @@ #ifndef __ED_NUMINPUT_H__ #define __ED_NUMINPUT_H__ - /* * The ctrl value has different meaning: * 0 : No value has been typed @@ -59,11 +58,11 @@ typedef struct NumInput { void initNumInput(NumInput *n); #define NUM_STR_REP_LEN 20 /* str must be NUM_STR_LEN * (idx_max + 1) length. */ void outputNumInput(NumInput *n, char *str); -short hasNumInput(NumInput *n); +bool hasNumInput(const NumInput *n); void applyNumInput(NumInput *n, float *vec); -char handleNumInput(NumInput *n, const struct wmEvent *event); +bool handleNumInput(NumInput *n, const struct wmEvent *event); #define NUM_MODAL_INCREMENT_UP 18 #define NUM_MODAL_INCREMENT_DOWN 19 -#endif +#endif /* __ED_NUMINPUT_H__ */ |