X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4fcb208a4fdd14091d122f9630c18335b8c2c2d3..b5a9b87e1620e52f1f13d2619b4677f2b365c93f:/src/osx/core/glgrab.cpp diff --git a/src/osx/core/glgrab.cpp b/src/osx/core/glgrab.cpp index 4dff0202a8..a3ab663475 100644 --- a/src/osx/core/glgrab.cpp +++ b/src/osx/core/glgrab.cpp @@ -146,8 +146,8 @@ CGImageRef grabViaOpenGL(CGDirectDisplayID display, CGRect srcRect) glReadBuffer(GL_FRONT); - width = srcRect.size.width; - height = srcRect.size.height; + width = (GLint)srcRect.size.width; + height = (GLint)srcRect.size.height; bytewidth = width * 4; // Assume 4 bytes/pixel for now