@@ -2163,11 +2163,6 @@ void gui_init(dt_iop_module_t *self)
21632163 gui_update (self );
21642164}
21652165
2166- static float _degrees_to_radians (const float degrees )
2167- {
2168- return degrees * M_PI_F / 180.f ;
2169- }
2170-
21712166static void _set_neutral_params (dt_iop_agx_user_params_t * user_params )
21722167{
21732168 user_params -> look_slope = 1.0f ;
@@ -2277,15 +2272,15 @@ void init_presets(dt_iop_module_so_t *self)
22772272 user_params .red_inset = 0.1f ;
22782273 user_params .green_inset = 0.1f ;
22792274 user_params .blue_inset = 0.15f ;
2280- user_params .red_rotation = _degrees_to_radians (2.f );
2281- user_params .green_rotation = _degrees_to_radians (-1.f );
2282- user_params .blue_rotation = _degrees_to_radians (-3.f );
2275+ user_params .red_rotation = deg2rad (2.f );
2276+ user_params .green_rotation = deg2rad (-1.f );
2277+ user_params .blue_rotation = deg2rad (-3.f );
22832278 user_params .red_outset = 0.1f ;
22842279 user_params .green_outset = 0.1f ;
22852280 user_params .blue_outset = 0.15f ;
2286- user_params .red_unrotation = _degrees_to_radians (2.f );
2287- user_params .green_unrotation = _degrees_to_radians (-1.f );
2288- user_params .blue_unrotation = _degrees_to_radians (-3.f );
2281+ user_params .red_unrotation = deg2rad (2.f );
2282+ user_params .green_unrotation = deg2rad (-1.f );
2283+ user_params .blue_unrotation = deg2rad (-3.f );
22892284 // Don't restore purity - try to avoid posterization.
22902285 user_params .master_outset_ratio = 0.0f ;
22912286 user_params .master_unrotation_ratio = 1.0f ;
0 commit comments