diff options
author | nyamatongwe <nyamatongwe@gmail.com> | 2012-02-17 20:46:12 +1100 |
---|---|---|
committer | nyamatongwe <nyamatongwe@gmail.com> | 2012-02-17 20:46:12 +1100 |
commit | b686ba611f0d50e9a1b33c8d6cdc2ef714ea3c77 (patch) | |
tree | 37a01739082fc76618989ace3452d071baa07348 | |
parent | b602cabb980c33f23d02628c26d71d40bee07425 (diff) | |
download | scintilla-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.mm | 10 |
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 ); |