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
|
||||
virtual double GetScaleFactor() const { return 1.0; }
|
||||
virtual double GetScaledWidth() const { return GetWidth() / GetScaleFactor(); }
|
||||
virtual double GetScaledHeight() const { return GetHeight() / GetScaleFactor(); }
|
||||
virtual wxSize GetScaledSize() const
|
||||
{ return wxSize(wxRound(GetScaledWidth()), wxRound(GetScaledHeight())); }
|
||||
virtual double GetScaledWidth() const { return GetWidth(); }
|
||||
virtual double GetScaledHeight() const { return GetHeight(); }
|
||||
virtual wxSize GetScaledSize() const { return GetSize(); }
|
||||
|
||||
// implementation only from now on
|
||||
// -------------------------------
|
||||
|
Reference in New Issue
Block a user