]> git.saurik.com Git - wxWidgets.git/blobdiff - src/univ/stdrend.cpp
Make status bar grip move to the left in RTL.
[wxWidgets.git] / src / univ / stdrend.cpp
index 4b25de77001c5f008dbbbc337d5632316808ab50..5a78545902b1a7ffb56c8a223811e5e416e8950b 100644 (file)
@@ -167,9 +167,20 @@ void wxStdRenderer::DrawBackground(wxDC& dc,
                                    int WXUNUSED(flags),
                                    wxWindow *window)
 {
-    wxColour colBg = col.Ok() ? col
-                              : window ? m_scheme->GetBackground(window)
-                                       : wxSCHEME_COLOUR(m_scheme, CONTROL);
+    wxColour colBg;
+
+    if (col.Ok())
+    {
+        colBg = col;
+    }
+    else if (window)
+    {
+        colBg = m_scheme->GetBackground(window);
+    }
+    else
+    {
+        colBg = wxSCHEME_COLOUR(m_scheme, CONTROL);
+    }
 
     DrawSolidRect(dc, colBg, rect);
 }