From cffbfebc684e000e4fd859b05b2f6fabae633c8a Mon Sep 17 00:00:00 2001 From: David Webster Date: Mon, 23 Apr 2001 18:31:23 +0000 Subject: [PATCH] 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 --- src/generic/statusbr.cpp | 10 ---------- 1 file changed, 10 deletions(-) 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++; -- 2.45.2