|
@@ -7,7 +7,6 @@
|
|
|
|
|
|
#include "FastBoxBlur.h"
|
|
|
#include "../FilterParams.h"
|
|
|
-#include <AK/ExtraMathConstants.h>
|
|
|
#include <LibGUI/Label.h>
|
|
|
#include <LibGUI/ValueSlider.h>
|
|
|
#include <LibGfx/Filters/FastBoxBlurFilter.h>
|
|
@@ -20,8 +19,8 @@ void FastBoxBlur::apply(Gfx::Bitmap& target_bitmap) const
|
|
|
|
|
|
if (m_use_asymmetric_radii) {
|
|
|
if (m_use_vector) {
|
|
|
- auto radius_x = m_radius * fabs(cos((double)m_angle * M_DEG2RAD));
|
|
|
- auto radius_y = m_radius * fabs(sin((double)m_angle * M_DEG2RAD));
|
|
|
+ auto radius_x = m_radius * fabs(cos(AK::to_radians(static_cast<double>(m_angle))));
|
|
|
+ auto radius_y = m_radius * fabs(sin(AK::to_radians(static_cast<double>(m_angle))));
|
|
|
filter.apply_single_pass(radius_x, radius_y);
|
|
|
return;
|
|
|
}
|