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:
@@ -1711,7 +1711,7 @@ static int ui_do_but_SLI(uiBut *but)
|
|||||||
}
|
}
|
||||||
|
|
||||||
value= ui_get_but_val(but);
|
value= ui_get_but_val(but);
|
||||||
lvalue= (int) value;
|
lvalue= floor(value+0.5);
|
||||||
|
|
||||||
if( but->pointype!=FLO )
|
if( but->pointype!=FLO )
|
||||||
redraw= (temp != lvalue);
|
redraw= (temp != lvalue);
|
||||||
|
|||||||
Reference in New Issue
Block a user