diff --git a/include/wx/gtk/dc.h b/include/wx/gtk/dc.h index de09ee2494..3e3b600f68 100644 --- a/include/wx/gtk/dc.h +++ b/include/wx/gtk/dc.h @@ -76,6 +76,8 @@ class wxScreenDCImpl: public wxGTKCairoDCImpl public: wxScreenDCImpl(wxScreenDC* owner); + virtual wxSize GetPPI() const wxOVERRIDE; + wxDECLARE_NO_COPY_CLASS(wxScreenDCImpl); }; //----------------------------------------------------------------------------- diff --git a/src/gtk/dc.cpp b/src/gtk/dc.cpp index ed846c0899..ccd61f9b02 100644 --- a/src/gtk/dc.cpp +++ b/src/gtk/dc.cpp @@ -364,6 +364,12 @@ wxScreenDCImpl::wxScreenDCImpl(wxScreenDC* owner) gc->EnableOffset(m_contentScaleFactor <= 1); SetGraphicsContext(gc); } + +wxSize wxScreenDCImpl::GetPPI() const +{ + return wxGetDisplayPPI(); +} + //----------------------------------------------------------------------------- wxMemoryDCImpl::wxMemoryDCImpl(wxMemoryDC* owner)