X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/605c9c8318875c590fce53cd2ce5d5aabcc92564..ea57084d103187771c0306a6e1684e32244d6101:/utils/ogl/src/misc.cpp diff --git a/utils/ogl/src/misc.cpp b/utils/ogl/src/misc.cpp index c55ca31103..4c0008ea14 100644 --- a/utils/ogl/src/misc.cpp +++ b/utils/ogl/src/misc.cpp @@ -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)