Cleanup: Use const for smoot scrolling function

This commit is contained in:
Julian Eisel 2022-04-25 18:15:14 +02:00
parent e99cb91530
commit 845e2ed3a2
2 changed files with 5 additions and 2 deletions

View File

@ -416,7 +416,7 @@ void ED_keymap_view2d(struct wmKeyConfig *keyconf);
* Will start timer if appropriate.
* the arguments are the desired situation.
*/
void UI_view2d_smooth_view(struct bContext *C,
void UI_view2d_smooth_view(const struct bContext *C,
struct ARegion *region,
const struct rctf *cur,
int smooth_viewtx);

View File

@ -1546,7 +1546,10 @@ static float smooth_view_rect_to_fac(const rctf *rect_a, const rctf *rect_b)
return min_ff(fac_max, 1.0f);
}
void UI_view2d_smooth_view(bContext *C, ARegion *region, const rctf *cur, const int smooth_viewtx)
void UI_view2d_smooth_view(const bContext *C,
ARegion *region,
const rctf *cur,
const int smooth_viewtx)
{
wmWindowManager *wm = CTX_wm_manager(C);
wmWindow *win = CTX_wm_window(C);