Fixed small calculation error for non-float slider, which defined
whether redraw was needed. This shows on (some) windows cards that the button continuously keeps updating/flashing. Since I can't test it here, please confirm :)
This commit is contained in:
parent
0a092a5ffa
commit
4d3cca252c
@ -1711,7 +1711,7 @@ static int ui_do_but_SLI(uiBut *but)
|
||||
}
|
||||
|
||||
value= ui_get_but_val(but);
|
||||
lvalue= (int) value;
|
||||
lvalue= floor(value+0.5);
|
||||
|
||||
if( but->pointype!=FLO )
|
||||
redraw= (temp != lvalue);
|
||||
|
Loading…
Reference in New Issue
Block a user