Add explicit double -> SkScalar conversion to fix werror on Windows.
BUG= Review URL: https://codereview.chromium.org/23432008 git-svn-id: http://skia.googlecode.com/svn/trunk@11190 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
e932c98069
commit
b87bf83f48
@ -148,7 +148,7 @@ protected:
|
||||
size_t sizes = SK_ARRAY_COUNT(gSizes);
|
||||
|
||||
if (FLAGS_strokeWidth >= 0) {
|
||||
gSizes[0] = FLAGS_strokeWidth;
|
||||
gSizes[0] = (SkScalar)FLAGS_strokeWidth;
|
||||
sizes = 1;
|
||||
}
|
||||
|
||||
@ -250,7 +250,7 @@ protected:
|
||||
size_t sizes = SK_ARRAY_COUNT(gSizes);
|
||||
|
||||
if (FLAGS_strokeWidth >= 0) {
|
||||
gSizes[0] = FLAGS_strokeWidth;
|
||||
gSizes[0] = (SkScalar)FLAGS_strokeWidth;
|
||||
sizes = 1;
|
||||
}
|
||||
SkRandom rand;
|
||||
|
Loading…
Reference in New Issue
Block a user