]> git.saurik.com Git - wxWidgets.git/commitdiff
Minor fix for owner drawn menu item.
authorDavid Webster <Dave.Webster@bhmi.com>
Tue, 29 Jan 2002 04:56:13 +0000 (04:56 +0000)
committerDavid Webster <Dave.Webster@bhmi.com>
Tue, 29 Jan 2002 04:56:13 +0000 (04:56 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13903 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/os2/ownerdrw.cpp

index e5c4065ef4ac81584c834113dad50611170256bd..75c8906036d2a42525d99b9aacd081ffc5533bb8 100644 (file)
@@ -386,8 +386,9 @@ bool wxOwnerDrawn::OnDrawItem(
                                                 ,rRect.x + GetMarginWidth()
                                                 ,rRect.y + m_nHeight
                                                };
-                POINTL              vPnt1 = {2, 4}; // Leave a little background border
+                POINTL              vPnt1 = {rRect.x + 1, rRect.y + 3}; // Leave a little background border
                 POINTL              vPnt2 = {rRect.x + GetMarginWidth(), rRect.y + m_nHeight - 3};
+
                 LINEBUNDLE          vLine;
 
                 vLine.lColor = vColBack.GetPixel();
@@ -398,6 +399,7 @@ bool wxOwnerDrawn::OnDrawItem(
                               ,&vLine
                              );
                 ::GpiMove(hPS, &vPnt1);
+                char   zMsg[128];
                 ::GpiBox( hPS
                          ,DRO_OUTLINE
                          ,&vPnt2