- else
- {
- pango_layout_get_pixel_size( m_layout, &w, &h );
- if ( m_backgroundMode == wxSOLID )
- {
- gdk_gc_set_foreground(m_textGC, m_textBackgroundColour.GetColor());
- gdk_draw_rectangle(m_gdkwindow, m_textGC, TRUE, x, y, w, h);
- gdk_gc_set_foreground(m_textGC, m_textForegroundColour.GetColor());
- }
-
- // Draw layout.
- if (m_window && m_window->GetLayoutDirection() == wxLayout_RightToLeft)
- gdk_draw_layout( m_gdkwindow, m_textGC, x-w, y, m_layout );
- else
- gdk_draw_layout( m_gdkwindow, m_textGC, x, y, m_layout );
- }
-