wxPen* g_oglBlackForegroundPen;
wxCursor* g_oglBullseyeCursor = NULL;
-char* oglBuffer = NULL;
+wxChar* oglBuffer = NULL;
wxList oglObjectCopyMapping(wxKEY_INTEGER);
OGLInitializeConstraintTypes();
// Initialize big buffer used when writing images
- oglBuffer = new char[3000];
+ oglBuffer = new wxChar[3000];
}
oglBuffer = NULL;
}
oglBuffer = NULL;
+
if (g_oglBullseyeCursor)
{
delete g_oglBullseyeCursor;
}
void oglGetCentredTextExtent(wxDC& dc, wxList *text_list,
- double m_xpos, double m_ypos, double width, double height,
+ double WXUNUSED(m_xpos), double WXUNUSED(m_ypos), double WXUNUSED(width), double WXUNUSED(height),
double *actual_width, double *actual_height)
{
int n = text_list->GetCount();
long current_width = 0;
wxNode *current = text_list->GetFirst();
- int i = 0;
while (current)
{
wxShapeTextLine *line = (wxShapeTextLine *)current->GetData();
if (current_width > max_width)
max_width = current_width;
current = current->GetNext();
- i ++;
}
*actual_height = n*char_height;
// Format a string to a list of strings that fit in the given box.
// Interpret %n and 10 or 13 as a new line.
-wxStringList *oglFormatText(wxDC& dc, const wxString& text, double width, double height, int formatMode)
+wxStringList *oglFormatText(wxDC& dc, const wxString& text, double width, double WXUNUSED(height), int formatMode)
{
// First, parse the string into a list of words
wxStringList word_list;