X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3dd4e4e05cc46ffc653730715e527af7b18b9caf..f7ac40d158bbc88f497e29b6efcda20be7da4973:/utils/ogl/src/misc.cpp diff --git a/utils/ogl/src/misc.cpp b/utils/ogl/src/misc.cpp index c55ca31103..50ed2669dc 100644 --- a/utils/ogl/src/misc.cpp +++ b/utils/ogl/src/misc.cpp @@ -444,12 +444,12 @@ wxStringList *oglFormatText(wxDC& dc, const wxString& text, double width, double { word[j] = 0; j = 0; - word_list.Append((wxObject *)copystring(word)); + word_list.Add(word); end_word = FALSE; } if (new_line) { - word_list.Append((wxObject *)NULL); + word_list.Append(NULL); new_line = FALSE; } } @@ -518,8 +518,8 @@ void oglDrawFormattedText(wxDC& dc, wxList *text_list, yoffset = (double)(m_ypos - (height / 2.0)); dc.SetClippingRegion( - (double)(m_xpos - width/2.0), (double)(m_ypos - height/2.0), - (double)width, (double)height); + (long)(m_xpos - width/2.0), (long)(m_ypos - height/2.0), + (long)width, (long)height); wxNode *current = text_list->First(); while (current)