Override FromDIP in wxSVGFileDC and wxPostScriptDC
These are DPI independent.
This commit is contained in:
parent
cb05935f52
commit
3da3103eb5
2 changed files with 10 additions and 0 deletions
|
|
@ -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 { }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue