Index: samplecode/SampleFatBits.cpp |
diff --git a/samplecode/SampleFatBits.cpp b/samplecode/SampleFatBits.cpp |
index 6057c68fde561dd0bde1140a32e1b28496a5672f..c300733131d6fe358381be483791d6263ea89f8e 100644 |
--- a/samplecode/SampleFatBits.cpp |
+++ b/samplecode/SampleFatBits.cpp |
@@ -102,8 +102,7 @@ public: |
SkImageInfo info = SkImageInfo::MakeN32Premul(width, height); |
fMinSurface.reset(SkSurface::NewRaster(info)); |
- info.fWidth *= zoom; |
- info.fHeight *= zoom; |
+ info = info.makeWH(width * zoom, height * zoom); |
fMaxSurface.reset(SkSurface::NewRaster(info)); |
} |