Remove GetDPIScaleFactor from wxDC and wxGraphicsContext
This reverts most of the changes from ee2b02614e (Add GetDPIScaleFactor to wxDC
and wxGraphicsContext, 2022-04-16).
This is not supposed to be used to scale pixels, FromDIP will be added instead.
Temporary use scale=1 in the drawing sample until FromDIP is added.
This commit is contained in:
@@ -27,7 +27,6 @@ public:
|
||||
virtual void DoDrawRectangle(wxCoord x, wxCoord y, wxCoord width, wxCoord height) wxOVERRIDE;
|
||||
virtual void DoGetSize(int* width, int* height) const wxOVERRIDE;
|
||||
virtual void DoSelect(const wxBitmap& bitmap) wxOVERRIDE;
|
||||
virtual double GetDPIScaleFactor() const wxOVERRIDE;
|
||||
|
||||
virtual wxBitmap DoGetAsBitmap(const wxRect* subrect) const wxOVERRIDE
|
||||
{ return subrect == NULL ? GetSelectedBitmap() : GetSelectedBitmap().GetSubBitmapOfHDC(*subrect, GetHDC() );}
|
||||
|
||||
Reference in New Issue
Block a user