aboutsummaryrefslogtreecommitdiffhomepage
path: root/cocoa
diff options
context:
space:
mode:
authornyamatongwe <nyamatongwe@gmail.com>2012-02-17 20:46:12 +1100
committernyamatongwe <nyamatongwe@gmail.com>2012-02-17 20:46:12 +1100
commit4a995324b0693cd9f00cfdd2bbf7d9b375c5f21e (patch)
treeee56b154c786c34f90e46ad4672ea072a85595da /cocoa
parenta43bbebc9e03162845cb23c22d4a8cc6e7769efb (diff)
downloadscintilla-mirror-4a995324b0693cd9f00cfdd2bbf7d9b375c5f21e.tar.gz
Xcode analyze could not understand treating a 2D array as a 1D array
so treat as a 2D array.
Diffstat (limited to 'cocoa')
-rw-r--r--cocoa/PlatCocoa.mm10
1 files changed, 6 insertions, 4 deletions
diff --git a/cocoa/PlatCocoa.mm b/cocoa/PlatCocoa.mm
index 300af3775..f584107a7 100644
--- a/cocoa/PlatCocoa.mm
+++ b/cocoa/PlatCocoa.mm
@@ -577,11 +577,13 @@ void SurfaceImpl::RoundedRectangle(PRectangle rc, ColourDesired fore, ColourDesi
};
// Align the points in the middle of the pixels
- for( int i = 0; i < 4*3; ++ i )
+ for( int i = 0; i < 4; ++ i )
{
- CGPoint* c = (CGPoint*) corners;
- c[i].x += 0.5;
- c[i].y += 0.5;
+ for( int j = 0; j < 3; ++ j )
+ {
+ corners[i][j].x += 0.5;
+ corners[i][j].y += 0.5;
+ }
}
PenColour( fore );