X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/702c190d47dda3bab40d7924781296231d9a2a5b..cd378f94bec1edc0f991ee55b02bfe3084de94e0:/src/generic/statusbr.cpp?ds=sidebyside diff --git a/src/generic/statusbr.cpp b/src/generic/statusbr.cpp index 386ba1d251..ea7ab8837a 100644 --- a/src/generic/statusbr.cpp +++ b/src/generic/statusbr.cpp @@ -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++;