Index: src/views/unix/SkOSWindow_Unix.cpp |
diff --git a/src/views/unix/SkOSWindow_Unix.cpp b/src/views/unix/SkOSWindow_Unix.cpp |
index 9fa2b304b9fb576730114bca98b12dd77f613b73..374dbccc346608501a7463c1527a1cc7eb8b2609 100644 |
--- a/src/views/unix/SkOSWindow_Unix.cpp |
+++ b/src/views/unix/SkOSWindow_Unix.cpp |
@@ -330,7 +330,8 @@ bool SkOSWindow::attach(SkBackEndTypes, int msaaSampleCount, AttachmentInfo* inf |
fUnixWindow.fWin, |
fUnixWindow.fGLContext); |
glViewport(0, 0, |
- SkScalarRound(this->width()), SkScalarRound(this->height())); |
+ SkScalarRoundToInt(this->width()), |
+ SkScalarRoundToInt(this->height())); |
glClearColor(0, 0, 0, 0); |
glClearStencil(0); |
glClear(GL_COLOR_BUFFER_BIT | GL_STENCIL_BUFFER_BIT); |