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:
parent
0bbfe845ed
commit
cffbfebc68
@ -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++;
|
||||
|
Loading…
Reference in New Issue
Block a user