Override FromDIP in wxSVGFileDC and wxPostScriptDC
These are DPI independent.
This commit is contained in:
@@ -248,6 +248,11 @@ private:
|
||||
|
||||
virtual wxSize GetPPI() const wxOVERRIDE;
|
||||
|
||||
virtual wxSize FromDIP(const wxSize& sz) const wxOVERRIDE
|
||||
{
|
||||
return sz;
|
||||
}
|
||||
|
||||
void Init(const wxString& filename, int width, int height,
|
||||
double dpi, const wxString& title);
|
||||
|
||||
|
||||
@@ -76,6 +76,11 @@ public:
|
||||
// Resolution in pixels per logical inch
|
||||
wxSize GetPPI() const wxOVERRIDE;
|
||||
|
||||
virtual wxSize FromDIP(const wxSize& sz) const wxOVERRIDE
|
||||
{
|
||||
return sz;
|
||||
}
|
||||
|
||||
virtual void ComputeScaleAndOrigin() wxOVERRIDE;
|
||||
|
||||
void SetBackgroundMode(int WXUNUSED(mode)) wxOVERRIDE { }
|
||||
|
||||
Reference in New Issue
Block a user