diff --git a/include/wx/gdicmn.h b/include/wx/gdicmn.h index 14b648b092..10baa55178 100644 --- a/include/wx/gdicmn.h +++ b/include/wx/gdicmn.h @@ -318,7 +318,7 @@ public: void DecBy(int d) { DecBy(d, d); } - wxSize& Scale(float xscale, float yscale) + wxSize& Scale(double xscale, double yscale) { x = (int)(x*xscale); y = (int)(y*yscale); return *this; } // accessors diff --git a/interface/wx/gdicmn.h b/interface/wx/gdicmn.h index 5d18c2aa7a..6e98d29d88 100644 --- a/interface/wx/gdicmn.h +++ b/interface/wx/gdicmn.h @@ -1014,7 +1014,7 @@ public: @return A reference to this object (so that you can concatenate other operations in the same line). */ - wxSize& Scale(float xscale, float yscale); + wxSize& Scale(double xscale, double yscale); /** Sets the width and height members.