From: Robert Roebling Date: Sun, 22 Feb 2004 18:12:13 +0000 (+0000) Subject: I don't understand what the original author X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/48fbb5214d7dd35f17d23e6e05631bc8ccc1c8a5 I don't understand what the original author 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 --- diff --git a/src/mac/carbon/renderer.cpp b/src/mac/carbon/renderer.cpp index fbe365ab67..3502ab3132 100644 --- a/src/mac/carbon/renderer.cpp +++ b/src/mac/carbon/renderer.cpp @@ -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; diff --git a/src/mac/renderer.cpp b/src/mac/renderer.cpp index fbe365ab67..3502ab3132 100644 --- a/src/mac/renderer.cpp +++ b/src/mac/renderer.cpp @@ -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;