No changes, just remove an unused variable.
Closes #14923. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73278 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -115,7 +115,6 @@ CGImageRef grabViaOpenGL(CGDirectDisplayID display, CGRect srcRect)
|
|||||||
void * data;
|
void * data;
|
||||||
long bytewidth;
|
long bytewidth;
|
||||||
GLint width, height;
|
GLint width, height;
|
||||||
long bytes;
|
|
||||||
|
|
||||||
CGLContextObj glContextObj;
|
CGLContextObj glContextObj;
|
||||||
CGLPixelFormatObj pixelFormatObj ;
|
CGLPixelFormatObj pixelFormatObj ;
|
||||||
@@ -157,7 +156,6 @@ CGImageRef grabViaOpenGL(CGDirectDisplayID display, CGRect srcRect)
|
|||||||
|
|
||||||
bytewidth = width * 4; // Assume 4 bytes/pixel for now
|
bytewidth = width * 4; // Assume 4 bytes/pixel for now
|
||||||
bytewidth = (bytewidth + 3) & ~3; // Align to 4 bytes
|
bytewidth = (bytewidth + 3) & ~3; // Align to 4 bytes
|
||||||
bytes = bytewidth * height; // width * height
|
|
||||||
|
|
||||||
/* Build bitmap context */
|
/* Build bitmap context */
|
||||||
data = malloc(height * bytewidth);
|
data = malloc(height * bytewidth);
|
||||||
|
Reference in New Issue
Block a user