added wxGetDisplayPPI() convenience function and wxPrintout::SetPPI*() overloads accepting single wxSize argument
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55761 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -880,6 +880,15 @@ wxSize wxGetDisplaySizeMM()
|
||||
return wxSize(x, y);
|
||||
}
|
||||
|
||||
wxSize wxGetDisplayPPI()
|
||||
{
|
||||
const wxSize pixels = wxGetDisplaySize();
|
||||
const wxSize mm = wxGetDisplaySizeMM();
|
||||
|
||||
return wxSize((pixels.x * 25.4) / mm.x,
|
||||
(pixels.y * 25.4) / mm.y);
|
||||
}
|
||||
|
||||
wxResourceCache::~wxResourceCache ()
|
||||
{
|
||||
wxList::compatibility_iterator node = GetFirst ();
|
||||
|
||||
Reference in New Issue
Block a user