diff options
Diffstat (limited to 'canvas/source/opengl/ogl_spritedevicehelper.cxx')
-rw-r--r-- | canvas/source/opengl/ogl_spritedevicehelper.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/canvas/source/opengl/ogl_spritedevicehelper.cxx b/canvas/source/opengl/ogl_spritedevicehelper.cxx index 3f4c8a7414b5..3043deeaec3f 100644 --- a/canvas/source/opengl/ogl_spritedevicehelper.cxx +++ b/canvas/source/opengl/ogl_spritedevicehelper.cxx @@ -56,8 +56,8 @@ static void initTransformation(const ::Size& rSize) { // use whole window glViewport( 0,0, - (GLsizei)rSize.Width(), - (GLsizei)rSize.Height() ); + static_cast<GLsizei>(rSize.Width()), + static_cast<GLsizei>(rSize.Height()) ); // model coordinate system is already in device pixel glMatrixMode(GL_MODELVIEW); |