]> git.saurik.com Git - wxWidgets.git/commitdiff
I don't understand what the original author
authorRobert Roebling <robert@roebling.de>
Sun, 22 Feb 2004 18:12:13 +0000 (18:12 +0000)
committerRobert Roebling <robert@roebling.de>
Sun, 22 Feb 2004 18:12:13 +0000 (18:12 +0000)
    of the current list ctrl header button code
    under Mac meant with "CORNER", but the whole
    thing is off by 1.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25921 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/renderer.cpp
src/mac/renderer.cpp

index fbe365ab67c8e54ec066afbad4fc03fec47d1032..3502ab313291303f5604cec279022f626f15fb2d 100644 (file)
@@ -134,8 +134,8 @@ wxRendererMac::DrawHeaderButton(wxWindow *win,
 {
     const int CORNER = 1;
 
-    const wxCoord x = rect.x,
-                  y = rect.y,
+    const wxCoord x = rect.x-1,
+                  y = rect.y-1,
                   w = rect.width,
                   h = rect.height;
 
index fbe365ab67c8e54ec066afbad4fc03fec47d1032..3502ab313291303f5604cec279022f626f15fb2d 100644 (file)
@@ -134,8 +134,8 @@ wxRendererMac::DrawHeaderButton(wxWindow *win,
 {
     const int CORNER = 1;
 
-    const wxCoord x = rect.x,
-                  y = rect.y,
+    const wxCoord x = rect.x-1,
+                  y = rect.y-1,
                   w = rect.width,
                   h = rect.height;