mirror of https://github.com/fltk/fltk
Fix Mac OS launching of the browser test program.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11911 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
b1e25e4838
commit
e5486b24d1
|
@ -149,16 +149,13 @@ int main(int argc, char **argv) {
|
|||
done = browser->load(fname);
|
||||
}
|
||||
#elif defined(__APPLE__)
|
||||
if ( i == argc )
|
||||
{
|
||||
char buf[2048];
|
||||
strcpy(buf, argv[0]);
|
||||
char *slash = strrchr(buf, '/');
|
||||
if (slash) {
|
||||
strcpy(slash, "/../../../browser.cxx");
|
||||
}
|
||||
done = browser->load(buf);
|
||||
char buf[2048];
|
||||
strcpy(buf, argv[0]);
|
||||
char *slash = strrchr(buf, '/');
|
||||
if (slash) {
|
||||
strcpy(slash, "/../../../browser.cxx");
|
||||
}
|
||||
done = browser->load(buf);
|
||||
#endif
|
||||
if ( !done )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue