summaryrefslogtreecommitdiffstats
path: root/ui/gfx/shadow_value.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ui/gfx/shadow_value.cc')
-rw-r--r--ui/gfx/shadow_value.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/gfx/shadow_value.cc b/ui/gfx/shadow_value.cc
index 09127ee..0602c2d 100644
--- a/ui/gfx/shadow_value.cc
+++ b/ui/gfx/shadow_value.cc
@@ -8,6 +8,7 @@
#include "base/stringprintf.h"
#include "ui/gfx/insets.h"
+#include "ui/gfx/point_conversions.h"
namespace gfx {
@@ -28,7 +29,8 @@ ShadowValue::~ShadowValue() {
}
ShadowValue ShadowValue::Scale(float scale) const {
- return ShadowValue(offset_.Scale(scale), blur_ * scale, color_);
+ gfx::Point scaled_offset = gfx::ToFlooredPoint(offset_.Scale(scale));
+ return ShadowValue(scaled_offset, blur_ * scale, color_);
}
std::string ShadowValue::ToString() const {