diff options
author | 2010-02-11 11:17:00 +0000 | |
---|---|---|
committer | 2010-02-11 11:17:00 +0000 | |
commit | c83d422b639a1c186d8e40e08ac895deef60410f (patch) | |
tree | bfd84240f04d725660cbcc51fa2bad1d7387b118 /include/core/SkSize.h | |
parent | 60bc6d5cb0af7cef0e49cc35f28f36f89b10853e (diff) |
doh - fix build
git-svn-id: http://skia.googlecode.com/svn/trunk@498 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/core/SkSize.h')
-rw-r--r-- | include/core/SkSize.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/include/core/SkSize.h b/include/core/SkSize.h index dae6fe91c2..9df9508f7d 100644 --- a/include/core/SkSize.h +++ b/include/core/SkSize.h @@ -70,8 +70,14 @@ typedef SkTSize<int32_t> SkISize; #include "SkScalar.h" struct SkSize : public SkTSize<SkScalar> { - SkSize(const SkTSize<SkScalar& src) : fWidth(src.fWidth), fHeight(src.fHeight) {} - + static SkSize Make(SkScalar w, SkScalar h) { + SkSize s; + s.fWidth = w; + s.fHeight = h; + return s; + } + + SkSize& operator=(const SkISize& src) { this->set(SkIntToScalar(src.fWidth), SkIntToScalar(src.fHeight)); return *this; |