Simplify wxBitmap::GetScaledXXX() in wxMSW
The scale factor is always 1 in this port, so don't bother dividing or rounding by it.
This commit is contained in:
@@ -187,10 +187,9 @@ public:
|
|||||||
|
|
||||||
// support for scaled bitmaps
|
// support for scaled bitmaps
|
||||||
virtual double GetScaleFactor() const { return 1.0; }
|
virtual double GetScaleFactor() const { return 1.0; }
|
||||||
virtual double GetScaledWidth() const { return GetWidth() / GetScaleFactor(); }
|
virtual double GetScaledWidth() const { return GetWidth(); }
|
||||||
virtual double GetScaledHeight() const { return GetHeight() / GetScaleFactor(); }
|
virtual double GetScaledHeight() const { return GetHeight(); }
|
||||||
virtual wxSize GetScaledSize() const
|
virtual wxSize GetScaledSize() const { return GetSize(); }
|
||||||
{ return wxSize(wxRound(GetScaledWidth()), wxRound(GetScaledHeight())); }
|
|
||||||
|
|
||||||
// implementation only from now on
|
// implementation only from now on
|
||||||
// -------------------------------
|
// -------------------------------
|
||||||
|
Reference in New Issue
Block a user