compilation fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45258 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1563,7 +1563,7 @@ void wxWindowDC::DoDrawText( const wxString &text, wxCoord x, wxCoord y )
|
|||||||
slen = strlen(text);
|
slen = strlen(text);
|
||||||
XCharStruct overall_return;
|
XCharStruct overall_return;
|
||||||
|
|
||||||
(void)XTextExtents(xfont, (char*) text.c_str(), slen, &direction,
|
(void)XTextExtents(xfont, (const char*) text.c_str(), slen, &direction,
|
||||||
&ascent, &descent, &overall_return);
|
&ascent, &descent, &overall_return);
|
||||||
|
|
||||||
cx = overall_return.width;
|
cx = overall_return.width;
|
||||||
@@ -1661,7 +1661,7 @@ void wxWindowDC::DoGetTextExtent( const wxString &string, wxCoord *width, wxCoor
|
|||||||
int direction, ascent, descent2;
|
int direction, ascent, descent2;
|
||||||
XCharStruct overall;
|
XCharStruct overall;
|
||||||
|
|
||||||
XTextExtents( xfont, (char*) string.c_str(), string.length(), &direction,
|
XTextExtents( xfont, (const char*) string.c_str(), string.length(), &direction,
|
||||||
&ascent, &descent2, &overall);
|
&ascent, &descent2, &overall);
|
||||||
|
|
||||||
if (width)
|
if (width)
|
||||||
|
@@ -1120,7 +1120,7 @@ void wxWindowX11::GetTextExtent(const wxString& string,
|
|||||||
XCharStruct overall;
|
XCharStruct overall;
|
||||||
int slen = string.length();
|
int slen = string.length();
|
||||||
|
|
||||||
XTextExtents((XFontStruct*) pFontStruct, (char*) string.c_str(), slen,
|
XTextExtents((XFontStruct*) pFontStruct, (const char*) string.c_str(), slen,
|
||||||
&direction, &ascent, &descent2, &overall);
|
&direction, &ascent, &descent2, &overall);
|
||||||
|
|
||||||
if ( x )
|
if ( x )
|
||||||
|
Reference in New Issue
Block a user