fix android typo
This commit is contained in:
parent
5ead988afb
commit
a7eaf8cc7e
@ -328,7 +328,7 @@ JNI_FUNC(nativeSetParameter)(JNIEnv* env, jobject thiz, jint i, jfloat v) {
|
|||||||
if (param_data[i].flags & (PARAM_BYPASS | PARAM_TOGGLED))
|
if (param_data[i].flags & (PARAM_BYPASS | PARAM_TOGGLED))
|
||||||
v = v > 0.5f ? 1.f : 0.f;
|
v = v > 0.5f ? 1.f : 0.f;
|
||||||
else if (param_data[i].flags & PARAM_INTEGER)
|
else if (param_data[i].flags & PARAM_INTEGER)
|
||||||
v = (int32_t)(v + (v >= 0.? : 0.5f : -0.5f));
|
v = (int32_t)(v + (v >= 0.f ? 0.5f : -0.5f));
|
||||||
v = std::min(std::max(v, param_data[i].min), param_data[i].max);
|
v = std::min(std::max(v, param_data[i].min), param_data[i].max);
|
||||||
#if PARAMETERS_N > 0
|
#if PARAMETERS_N > 0
|
||||||
mutex.lock();
|
mutex.lock();
|
||||||
|
Loading…
Reference in New Issue
Block a user