compilation fix for not MSW

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29368 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2004-09-25 23:37:29 +00:00
parent c430d0dc64
commit 9342fdbe5e

View File

@ -29,8 +29,9 @@
#endif
#ifndef WX_PRECOMP
#include "wx/font.h"
#include "wx/intl.h"
#include "wx/font.h"
#include "wx/intl.h"
#include "wx/dcscreen.h"
#endif // WX_PRECOMP
#include "wx/gdicmn.h"
@ -185,10 +186,10 @@ wxFont *wxFontBase::New(const wxSize& pixelSize,
return new wxFont(pixelSize, family, style, weight, underlined,
face, encoding);
#else
wxFont * ret = New(10, family, style, weight, underlined, face, encoding);
wxFont *self = New(10, family, style, weight, underlined, face, encoding);
wxScreenDC dc;
ret->AdjustFontSize(*(wxFont *)this, dc, pixelSize);
return ret;
AdjustFontSize(*(wxFont *)self, dc, pixelSize);
return self;
#endif
}