]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/ogl/src/misc.cpp
New way to grey out disabled toolbar icons.
[wxWidgets.git] / utils / ogl / src / misc.cpp
index c55ca31103a74832f49d6f64a47961a6545c3ff0..50ed2669dc20e55544cb9d73927425954d0a6d73 100644 (file)
@@ -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)