aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/utils/win
diff options
context:
space:
mode:
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;
}