X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/020172f6845e4d4385cd87ad9aca9d80939fcfdf..cc322b2cd5761a34f5e491a9adad7fa9999ae0fe:/src/os2/window.cpp?ds=sidebyside diff --git a/src/os2/window.cpp b/src/os2/window.cpp index 989b173844..842335a91d 100644 --- a/src/os2/window.cpp +++ b/src/os2/window.cpp @@ -1235,9 +1235,9 @@ void wxWindowOS2::Refresh( RECTL vOs2Rect; vOs2Rect.xLeft = pRect->x; - vOs2Rect.yTop = pRect->y; + vOs2Rect.yBottom = pRect->y; vOs2Rect.xRight = pRect->x + pRect->width; - vOs2Rect.yBottom = pRect->y + pRect->height; + vOs2Rect.yTop = pRect->y + pRect->height; ::WinInvalidateRect(hWnd, &vOs2Rect, bEraseBack); } @@ -1849,7 +1849,7 @@ void wxWindowOS2::GetTextExtent( int i; int l; FONTMETRICS vFM; // metrics structure - BOOL bRc; + BOOL bRc = FALSE; char* pStr; ERRORID vErrorCode; // last error id code HPS hPS;