wxPoint/Size/Rect() causes the same code with (0,0) initialization and is incomparably more readable and clear.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32101 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2227,7 +2227,7 @@ void wxDC::DoGetSizeMM(int *w, int *h) const
|
||||
|
||||
wxSize wxDC::GetPPI() const
|
||||
{
|
||||
WXMICROWIN_CHECK_HDC_RET(wxSize())
|
||||
WXMICROWIN_CHECK_HDC_RET(wxSize(0,0))
|
||||
|
||||
int x = ::GetDeviceCaps(GetHdc(), LOGPIXELSX);
|
||||
int y = ::GetDeviceCaps(GetHdc(), LOGPIXELSY);
|
||||
|
Reference in New Issue
Block a user