FRM's small wxSize::Scale enhancement.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42901 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -239,8 +239,8 @@ public:
|
||||
void DecBy(int d) { DecBy(d, d); }
|
||||
|
||||
|
||||
void Scale(float xscale, float yscale)
|
||||
{ x = (int)(x*xscale); y = (int)(y*yscale); }
|
||||
wxSize& Scale(float xscale, float yscale)
|
||||
{ x = (int)(x*xscale); y = (int)(y*yscale); return *this; }
|
||||
|
||||
// accessors
|
||||
void Set(int xx, int yy) { x = xx; y = yy; }
|
||||
|
Reference in New Issue
Block a user