b25888b419
www: http://www.wxwidgets.org/ from Andrew Dalgleish < openbsd at ajd dot net dot au > many thanks for much persistence!
34 lines
862 B
Plaintext
34 lines
862 B
Plaintext
$OpenBSD: patch-contrib_src_ogl_oglmisc_cpp,v 1.1.1.1 2004/07/16 21:01:35 todd Exp $
|
|
--- contrib/src/ogl/oglmisc.cpp.orig Sat Sep 20 20:23:20 2003
|
|
+++ contrib/src/ogl/oglmisc.cpp Mon Jun 28 19:15:54 2004
|
|
@@ -50,7 +50,9 @@ wxPen* g_oglBlackForegroundPen;
|
|
wxCursor* g_oglBullseyeCursor = NULL;
|
|
|
|
char* oglBuffer = NULL;
|
|
+size_t oglBufferLength = 0;
|
|
|
|
+
|
|
wxList oglObjectCopyMapping(wxKEY_INTEGER);
|
|
|
|
|
|
@@ -72,6 +74,7 @@ void wxOGLInitialize()
|
|
|
|
// Initialize big buffer used when writing images
|
|
oglBuffer = new char[3000];
|
|
+ oglBufferLength = 3000;
|
|
|
|
}
|
|
|
|
@@ -81,8 +84,11 @@ void wxOGLCleanUp()
|
|
{
|
|
delete[] oglBuffer;
|
|
oglBuffer = NULL;
|
|
+ oglBufferLength = 0;
|
|
}
|
|
oglBuffer = NULL;
|
|
+ oglBufferLength = 0;
|
|
+
|
|
if (g_oglBullseyeCursor)
|
|
{
|
|
delete g_oglBullseyeCursor;
|