From 48fbb5214d7dd35f17d23e6e05631bc8ccc1c8a5 Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Sun, 22 Feb 2004 18:12:13 +0000 Subject: [PATCH] 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 --- src/mac/carbon/renderer.cpp | 4 ++-- src/mac/renderer.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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; -- 2.47.2