git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14157
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
y = YLOG2DEV(y);
XCharStruct overall_return;
y = YLOG2DEV(y);
XCharStruct overall_return;
- int direction, slen, ascent, descent;
+ int direction = 0;
+ int slen = text.Length();
+ int ascent = 0;
+ int descent = 0;
(void)XTextExtents((XFontStruct*) xfont, (char*) (const char*) text, slen, &direction,
&ascent, &descent, &overall_return);
#if 0
(void)XTextExtents((XFontStruct*) xfont, (char*) (const char*) text, slen, &direction,
&ascent, &descent, &overall_return);
#if 0
// TODO: For dialogs, this should be wxSYS_COLOUR_3DFACE
m_backgroundColour = wxSystemSettings::GetColour(wxSYS_COLOUR_APPWORKSPACE);
m_backgroundColour.CalcPixel( (WXColormap) cm );
// TODO: For dialogs, this should be wxSYS_COLOUR_3DFACE
m_backgroundColour = wxSystemSettings::GetColour(wxSYS_COLOUR_APPWORKSPACE);
m_backgroundColour.CalcPixel( (WXColormap) cm );
XSetWindowAttributes xattributes;
XSizeHints size_hints;
XWMHints wm_hints;
XSetWindowAttributes xattributes;
XSizeHints size_hints;
XWMHints wm_hints;
m_backgroundColour = wxSystemSettings::GetColour(wxSYS_COLOUR_3DFACE);
m_backgroundColour.CalcPixel( (WXColormap) cm );
m_backgroundColour = wxSystemSettings::GetColour(wxSYS_COLOUR_3DFACE);
m_backgroundColour.CalcPixel( (WXColormap) cm );
m_foregroundColour = *wxBLACK;
m_foregroundColour.CalcPixel( (WXColormap) cm );
m_foregroundColour = *wxBLACK;
m_foregroundColour.CalcPixel( (WXColormap) cm );
bool wxWindowX11::SetBackgroundColour(const wxColour& col)
{
bool wxWindowX11::SetBackgroundColour(const wxColour& col)
{
- if ( !wxWindowBase::SetBackgroundColour(col) )
- return FALSE;
+ wxWindowBase::SetBackgroundColour(col);
if (!GetMainWindow())
return FALSE;
if (!GetMainWindow())
return FALSE;