]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/renderg.cpp
Build fix.
[wxWidgets.git] / src / generic / renderg.cpp
index 7675c9de83554105c0ebbbbddbea2c3a0a17386a..bb12d5ce5a319bf27ec883144d6d0d314b155670 100644 (file)
@@ -351,9 +351,9 @@ 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 pt[3] =
     {
         wxPoint(0, 0),
         wxPoint(rect.width, 0),
@@ -361,7 +361,7 @@ wxRendererGeneric::DrawComboBoxDropButton(wxWindow *win,
     };
     dc.SetBrush(wxBrush(win->GetForegroundColour()));
     dc.SetPen(wxPen(win->GetForegroundColour()));
-    dc.DrawPolygon(WXSIZEOF(pt), pt);
+    dc.DrawPolygon(3, pt, rect.x, rect.y);
 }