]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/renderg.cpp
no_rtti fix was not having correct eval order
[wxWidgets.git] / src / generic / renderg.cpp
index 7675c9de83554105c0ebbbbddbea2c3a0a17386a..2a6c00da5f0e3eeadffd837cb69260dd6ff42fcc 100644 (file)
@@ -351,17 +351,17 @@ wxRendererGeneric::DrawComboBoxDropButton(wxWindow *win,
 {
     dc.SetBrush(wxBrush(win->GetBackgroundColour()));
     dc.SetPen(wxPen(win->GetBackgroundColour()));
-    dc.DrawRectangle(0, 0, rect.width, rect.height);
+    dc.DrawRectangle(rect);
 
     wxPoint pt[] =
     {
-        wxPoint(0, 0),
+        wxPoint(0,0),
         wxPoint(rect.width, 0),
         wxPoint(rect.width/2, rect.height - 2)
     };
     dc.SetBrush(wxBrush(win->GetForegroundColour()));
     dc.SetPen(wxPen(win->GetForegroundColour()));
-    dc.DrawPolygon(WXSIZEOF(pt), pt);
+    dc.DrawPolygon(WXSIZEOF(pt), pt, rect.x, rect.y);
 }