Moving y pos transofrmation code to wxOS2::wxDC elimiantes need for some #ifdef __WXPM__ code here.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9859 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
David Webster 2001-04-23 18:31:23 +00:00
parent 0bbfe845ed
commit cffbfebc68

View File

@ -207,21 +207,11 @@ void wxStatusBarGeneric::DrawFieldText(wxDC& dc, int i)
long x, y;
#if defined(__WXPM__)
long decsent;
dc.GetTextExtent(text, &x, &y,&decsent);
int xpos = rect.x + leftMargin;
int ypos = (int) (((rect.height - y + 1) / 2 ) + rect.y + decsent ) ;
#else
dc.GetTextExtent(text, &x, &y);
int xpos = rect.x + leftMargin;
int ypos = (int) (((rect.height - y) / 2 ) + rect.y + 0.5) ;
#endif // __WXPM__
#if defined( __WXGTK__ ) || defined(__WXMAC__)
xpos++;
ypos++;