From: Stefan Csomor Date: Mon, 6 Nov 2006 08:11:57 +0000 (+0000) Subject: fixing region clipping X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/f4f9074f498f07afc12d13ee4e8a2a3b9d65b196 fixing region clipping git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43108 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/grid.cpp b/src/generic/grid.cpp index e9917ab6df..67b1ed79e2 100644 --- a/src/generic/grid.cpp +++ b/src/generic/grid.cpp @@ -7705,8 +7705,7 @@ void wxGrid::DrawAllGridLines( wxDC& dc, const wxRegion & WXUNUSED(reg) ) int rightCol = GetColPos( internalXToCol(right) ); int bottomRow = internalYToRow(bottom); -#ifndef __WXMAC__ - // CS: I don't know why suddenly unscrolled coordinates are used for clipping +#if !defined(__WXMAC__) || wxMAC_USE_CORE_GRAPHICS wxRegion clippedcells(0, 0, cw, ch); int i, j, cell_rows, cell_cols;