diff options
author | 2011-10-26 21:00:37 +0000 | |
---|---|---|
committer | 2011-10-26 21:00:37 +0000 | |
commit | 1e7281675dad0d3c18986c178b995a5c1154cc16 (patch) | |
tree | 4bd7ec8fb6de7a7d9b83ecee870e772795378307 /src | |
parent | d8676d2fd2765094d824a07e1024fc9489c7a59b (diff) |
Fix cmdline argument passing in SampleApp/Mac.
When SampleApp was ported to Cocoa, it lost the ability to pass a test
name on the command line. Fix it.
Review URL: http://codereview.appspot.com/5328042/
git-svn-id: http://skia.googlecode.com/svn/trunk@2538 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src')
-rw-r--r-- | src/utils/mac/SkSampleNSView.mm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/utils/mac/SkSampleNSView.mm b/src/utils/mac/SkSampleNSView.mm index 0d3abd69d9..242544fa69 100644 --- a/src/utils/mac/SkSampleNSView.mm +++ b/src/utils/mac/SkSampleNSView.mm @@ -8,11 +8,12 @@ #import "SkSampleNSView.h" #include "SampleApp.h" +#include <crt_externs.h> @implementation SkSampleNSView - (id)initWithDefaults { if (self = [super initWithDefaults]) { - fWind = new SampleWindow(self, NULL, NULL, NULL); + fWind = new SampleWindow(self, *_NSGetArgc(), *_NSGetArgv(), NULL); } return self; } |