aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/utils/win
diff options
context:
space:
mode:
authorGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-03-10 19:40:34 +0000
committerGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-03-10 19:40:34 +0000
commit5ba2d5b187021beafb2c8aebe6bf4ae4cde67ae4 (patch)
tree93537b2fbccbbb0b46cbd2f601ee8c51e7fe7f30 /src/utils/win
parent8bd4c7964ff6c62b6d7dd0b22978eed9ec81e509 (diff)
Fix warnings of SkScalar -> int conversions, by using SkScalarRound()
git-svn-id: http://skia.googlecode.com/svn/trunk@921 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/utils/win')
-rw-r--r--src/utils/win/SkOSWindow_Win.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/utils/win/SkOSWindow_Win.cpp b/src/utils/win/SkOSWindow_Win.cpp
index 328f7ab75a..e195a8a0fa 100644
--- a/src/utils/win/SkOSWindow_Win.cpp
+++ b/src/utils/win/SkOSWindow_Win.cpp
@@ -445,7 +445,8 @@ bool SkOSWindow::attachGL() {
}
}
if (wglMakeCurrent(GetDC((HWND)fHWND), (HGLRC)fHGLRC)) {
- glViewport(0, 0, this->width(), this->height());
+ glViewport(0, 0, SkScalarRound(this->width()),
+ SkScalarRound(this->height()));
fGLAttached = true;
return true;
}