aboutsummaryrefslogtreecommitdiffhomepage
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
commitb686ba611f0d50e9a1b33c8d6cdc2ef714ea3c77 (patch)
tree37a01739082fc76618989ace3452d071baa07348
parentb602cabb980c33f23d02628c26d71d40bee07425 (diff)
downloadscintilla-mirror-b686ba611f0d50e9a1b33c8d6cdc2ef714ea3c77.tar.gz
Xcode analyze could not understand treating a 2D array as a 1D array
so treat as a 2D array.
-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 );