]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/ogl/src/misc.cpp
Removed references to DEBUG and WXDEBUG; cured Motif font problem; removed
[wxWidgets.git] / utils / ogl / src / misc.cpp
index c55ca31103a74832f49d6f64a47961a6545c3ff0..4c0008ea14c12fbf3c2c08674f3001838b6da6c8 100644 (file)
@@ -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)